diff options
author | Alan Egerton <eggyal@gmail.com> | 2023-02-11 09:13:27 +0000 |
---|---|---|
committer | Alan Egerton <eggyal@gmail.com> | 2023-02-13 10:24:49 +0000 |
commit | 9783fcc13b8362d8cc5ddca1bc1d5b8714b1177e (patch) | |
tree | ceb9f9e513a280bfe58a71febe83181daed89df3 /compiler/rustc_middle/src/macros.rs | |
parent | dea342d8615fcd0dd6638a3f0f1cda9062286d8e (diff) | |
download | rust-9783fcc13b8362d8cc5ddca1bc1d5b8714b1177e.tar.gz |
Make folding traits generic over the Interner
Diffstat (limited to 'compiler/rustc_middle/src/macros.rs')
-rw-r--r-- | compiler/rustc_middle/src/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/macros.rs b/compiler/rustc_middle/src/macros.rs index 8e673e458c8..08cf12559d7 100644 --- a/compiler/rustc_middle/src/macros.rs +++ b/compiler/rustc_middle/src/macros.rs @@ -69,7 +69,7 @@ macro_rules! CloneLiftImpls { macro_rules! TrivialTypeTraversalImpls { (for <$tcx:lifetime> { $($ty:ty,)+ }) => { $( - impl<$tcx> $crate::ty::fold::ir::TypeFoldable<$tcx> for $ty { + impl<$tcx> $crate::ty::fold::ir::TypeFoldable<$crate::ty::TyCtxt<$tcx>> for $ty { fn try_fold_with<F: $crate::ty::fold::FallibleTypeFolder<$tcx>>( self, _: &mut F, @@ -121,7 +121,7 @@ macro_rules! EnumTypeTraversalImpl { (impl<$($p:tt),*> TypeFoldable<$tcx:tt> for $s:path { $($variants:tt)* } $(where $($wc:tt)*)*) => { - impl<$($p),*> $crate::ty::fold::ir::TypeFoldable<$tcx> for $s + impl<$($p),*> $crate::ty::fold::ir::TypeFoldable<$crate::ty::TyCtxt<$tcx>> for $s $(where $($wc)*)* { fn try_fold_with<V: $crate::ty::fold::FallibleTypeFolder<$tcx>>( |