@@ -1924,32 +1924,8 @@ impl<'tcx, T: Hash> Hash for Interned<'tcx, List<T>> {
1924
1924
}
1925
1925
}
1926
1926
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 ] {
1953
1929
& self . 0 [ ..]
1954
1930
}
1955
1931
}
@@ -1960,34 +1936,12 @@ impl<'tcx> Borrow<RegionKind> for Interned<'tcx, RegionKind> {
1960
1936
}
1961
1937
}
1962
1938
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
-
1977
1939
impl < ' tcx > Borrow < Const < ' tcx > > for Interned < ' tcx , Const < ' tcx > > {
1978
1940
fn borrow < ' a > ( & ' a self ) -> & ' a Const < ' tcx > {
1979
1941
& self . 0
1980
1942
}
1981
1943
}
1982
1944
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
-
1991
1945
impl < ' tcx > Borrow < PredicateKind < ' tcx > > for Interned < ' tcx , PredicateKind < ' tcx > > {
1992
1946
fn borrow < ' a > ( & ' a self ) -> & ' a PredicateKind < ' tcx > {
1993
1947
& self . 0
0 commit comments