We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bade6e commit 6533d01Copy full SHA for 6533d01
compiler/rustc_middle/src/ty/context.rs
@@ -2036,13 +2036,13 @@ direct_interners! {
2036
2037
macro_rules! slice_interners {
2038
($($field:ident: $method:ident($ty:ty)),+ $(,)?) => (
2039
- $(impl<'tcx> TyCtxt<'tcx> {
2040
- pub fn $method(self, v: &[$ty]) -> &'tcx List<$ty> {
+ impl<'tcx> TyCtxt<'tcx> {
+ $(pub fn $method(self, v: &[$ty]) -> &'tcx List<$ty> {
2041
self.interners.$field.intern_ref(v, || {
2042
Interned(List::from_arena(&*self.arena, v))
2043
}).0
2044
- }
2045
- })+
+ })+
+ }
2046
);
2047
}
2048
0 commit comments