about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
diff options
context:
space:
mode:
authorAlan Egerton <eggyal@gmail.com>2023-02-09 14:02:47 +0000
committerAlan Egerton <eggyal@gmail.com>2023-02-13 10:24:46 +0000
commitba55a453eba195fa3fae02b636abcf2bf9f59b95 (patch)
treec513f6f979cc03d7f37e88d7b490cb90a5b76307 /compiler/rustc_macros/src
parent62846d7c99ca4e17be8c6867fc4b50d10c8a6ec1 (diff)
downloadrust-ba55a453eba195fa3fae02b636abcf2bf9f59b95.tar.gz
rust-ba55a453eba195fa3fae02b636abcf2bf9f59b95.zip
Alias folding/visiting traits instead of re-export
Diffstat (limited to 'compiler/rustc_macros/src')
-rw-r--r--compiler/rustc_macros/src/type_foldable.rs4
-rw-r--r--compiler/rustc_macros/src/type_visitable.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_macros/src/type_foldable.rs b/compiler/rustc_macros/src/type_foldable.rs
index 23e619221aa..257b353e17c 100644
--- a/compiler/rustc_macros/src/type_foldable.rs
+++ b/compiler/rustc_macros/src/type_foldable.rs
@@ -17,13 +17,13 @@ pub fn type_foldable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::
         vi.construct(|_, index| {
             let bind = &bindings[index];
             quote! {
-                ::rustc_middle::ty::fold::TypeFoldable::try_fold_with(#bind, __folder)?
+                ::rustc_middle::ty::fold::ir::TypeFoldable::try_fold_with(#bind, __folder)?
             }
         })
     });
 
     s.bound_impl(
-        quote!(::rustc_middle::ty::fold::TypeFoldable<'tcx>),
+        quote!(::rustc_middle::ty::fold::ir::TypeFoldable<'tcx>),
         quote! {
             fn try_fold_with<__F: ::rustc_middle::ty::fold::FallibleTypeFolder<'tcx>>(
                 self,
diff --git a/compiler/rustc_macros/src/type_visitable.rs b/compiler/rustc_macros/src/type_visitable.rs
index 1f95661ce9d..d164dd3cb98 100644
--- a/compiler/rustc_macros/src/type_visitable.rs
+++ b/compiler/rustc_macros/src/type_visitable.rs
@@ -13,13 +13,13 @@ pub fn type_visitable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2:
     s.add_bounds(synstructure::AddBounds::Generics);
     let body_visit = s.each(|bind| {
         quote! {
-            ::rustc_middle::ty::visit::TypeVisitable::visit_with(#bind, __visitor)?;
+            ::rustc_middle::ty::visit::ir::TypeVisitable::visit_with(#bind, __visitor)?;
         }
     });
     s.bind_with(|_| synstructure::BindStyle::Move);
 
     s.bound_impl(
-        quote!(::rustc_middle::ty::visit::TypeVisitable<'tcx>),
+        quote!(::rustc_middle::ty::visit::ir::TypeVisitable<'tcx>),
         quote! {
             fn visit_with<__V: ::rustc_middle::ty::visit::TypeVisitor<'tcx>>(
                 &self,