Don't generate multiple impl blocks
This commit is contained in:
parent
7bade6ef73
commit
6533d010cf
@ -2036,13 +2036,13 @@ direct_interners! {
|
|||||||
|
|
||||||
macro_rules! slice_interners {
|
macro_rules! slice_interners {
|
||||||
($($field:ident: $method:ident($ty:ty)),+ $(,)?) => (
|
($($field:ident: $method:ident($ty:ty)),+ $(,)?) => (
|
||||||
$(impl<'tcx> TyCtxt<'tcx> {
|
impl<'tcx> TyCtxt<'tcx> {
|
||||||
pub fn $method(self, v: &[$ty]) -> &'tcx List<$ty> {
|
$(pub fn $method(self, v: &[$ty]) -> &'tcx List<$ty> {
|
||||||
self.interners.$field.intern_ref(v, || {
|
self.interners.$field.intern_ref(v, || {
|
||||||
Interned(List::from_arena(&*self.arena, v))
|
Interned(List::from_arena(&*self.arena, v))
|
||||||
}).0
|
}).0
|
||||||
}
|
})+
|
||||||
})+
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user