@@ -1924,32 +1924,8 @@ impl<'tcx, T: Hash> Hash for Interned<'tcx, List<T>> {
19241924 }
19251925}
19261926
1927- impl < ' tcx > Borrow < [ Ty < ' tcx > ] > for Interned < ' tcx , List < Ty < ' tcx > > > {
1928- fn borrow < ' a > ( & ' a self ) -> & ' a [ Ty < ' tcx > ] {
1929- & self . 0 [ ..]
1930- }
1931- }
1932-
1933- impl < ' tcx > Borrow < [ CanonicalVarInfo ] > for Interned < ' tcx , List < CanonicalVarInfo > > {
1934- fn borrow ( & self ) -> & [ CanonicalVarInfo ] {
1935- & self . 0 [ ..]
1936- }
1937- }
1938-
1939- impl < ' tcx > Borrow < [ GenericArg < ' tcx > ] > for Interned < ' tcx , InternalSubsts < ' tcx > > {
1940- fn borrow < ' a > ( & ' a self ) -> & ' a [ GenericArg < ' tcx > ] {
1941- & self . 0 [ ..]
1942- }
1943- }
1944-
1945- impl < ' tcx > Borrow < [ ProjectionKind ] > for Interned < ' tcx , List < ProjectionKind > > {
1946- fn borrow ( & self ) -> & [ ProjectionKind ] {
1947- & self . 0 [ ..]
1948- }
1949- }
1950-
1951- impl < ' tcx > Borrow < [ PlaceElem < ' tcx > ] > for Interned < ' tcx , List < PlaceElem < ' tcx > > > {
1952- fn borrow ( & self ) -> & [ PlaceElem < ' tcx > ] {
1927+ impl < ' tcx , T > Borrow < [ T ] > for Interned < ' tcx , List < T > > {
1928+ fn borrow < ' a > ( & ' a self ) -> & ' a [ T ] {
19531929 & self . 0 [ ..]
19541930 }
19551931}
@@ -1960,34 +1936,12 @@ impl<'tcx> Borrow<RegionKind> for Interned<'tcx, RegionKind> {
19601936 }
19611937}
19621938
1963- impl < ' tcx > Borrow < [ ExistentialPredicate < ' tcx > ] >
1964- for Interned < ' tcx , List < ExistentialPredicate < ' tcx > > >
1965- {
1966- fn borrow < ' a > ( & ' a self ) -> & ' a [ ExistentialPredicate < ' tcx > ] {
1967- & self . 0 [ ..]
1968- }
1969- }
1970-
1971- impl < ' tcx > Borrow < [ Predicate < ' tcx > ] > for Interned < ' tcx , List < Predicate < ' tcx > > > {
1972- fn borrow < ' a > ( & ' a self ) -> & ' a [ Predicate < ' tcx > ] {
1973- & self . 0 [ ..]
1974- }
1975- }
1976-
19771939impl < ' tcx > Borrow < Const < ' tcx > > for Interned < ' tcx , Const < ' tcx > > {
19781940 fn borrow < ' a > ( & ' a self ) -> & ' a Const < ' tcx > {
19791941 & self . 0
19801942 }
19811943}
19821944
1983- impl < ' tcx > Borrow < [ traits:: ChalkEnvironmentClause < ' tcx > ] >
1984- for Interned < ' tcx , List < traits:: ChalkEnvironmentClause < ' tcx > > >
1985- {
1986- fn borrow < ' a > ( & ' a self ) -> & ' a [ traits:: ChalkEnvironmentClause < ' tcx > ] {
1987- & self . 0 [ ..]
1988- }
1989- }
1990-
19911945impl < ' tcx > Borrow < PredicateKind < ' tcx > > for Interned < ' tcx , PredicateKind < ' tcx > > {
19921946 fn borrow < ' a > ( & ' a self ) -> & ' a PredicateKind < ' tcx > {
19931947 & self . 0
0 commit comments