Skip to content

Commit

Permalink
Don't generate multiple impl blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 24, 2020
1 parent 7bade6e commit 6533d01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_middle/src/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2036,13 +2036,13 @@ direct_interners! {

macro_rules! slice_interners {
($($field:ident: $method:ident($ty:ty)),+ $(,)?) => (
$(impl<'tcx> TyCtxt<'tcx> {
pub fn $method(self, v: &[$ty]) -> &'tcx List<$ty> {
impl<'tcx> TyCtxt<'tcx> {
$(pub fn $method(self, v: &[$ty]) -> &'tcx List<$ty> {
self.interners.$field.intern_ref(v, || {
Interned(List::from_arena(&*self.arena, v))
}).0
}
})+
})+
}
);
}

Expand Down

0 comments on commit 6533d01

Please sign in to comment.