@@ -47,7 +47,7 @@ pub(super) fn visitable_derive(mut s: synstructure::Structure<'_>) -> proc_macro
47
47
if has_attr ( bind, "ignore" ) {
48
48
quote ! { }
49
49
} else {
50
- quote ! { try_visit!( Visitable :: visit( #bind, __visitor, ( #extra) ) ) }
50
+ quote ! { rustc_ast_ir :: try_visit!( crate :: visit :: Visitable :: visit( #bind, __visitor, ( #extra) ) ) }
51
51
}
52
52
} ) ;
53
53
@@ -57,24 +57,23 @@ pub(super) fn visitable_derive(mut s: synstructure::Structure<'_>) -> proc_macro
57
57
if has_attr ( bind, "ignore" ) {
58
58
quote ! { }
59
59
} else {
60
- quote ! { MutVisitable :: visit_mut( #bind, __visitor, ( #extra) ) }
60
+ quote ! { crate :: mut_visit :: MutVisitable :: visit_mut( #bind, __visitor, ( #extra) ) }
61
61
}
62
62
} ) ;
63
63
64
64
s. gen_impl ( quote ! {
65
- use rustc_ast_ir:: try_visit;
66
- use rustc_ast_ir:: visit:: VisitorResult ;
67
- use crate :: visit:: { Visitable , Visitor , Walkable } ;
68
- use crate :: mut_visit:: { MutVisitor , MutVisitable , MutWalkable } ;
69
-
70
- gen impl <' __ast, __V: Visitor <' __ast>> Walkable <' __ast, __V> for @Self {
65
+ gen impl <' __ast, __V> crate :: visit:: Walkable <' __ast, __V> for @Self
66
+ where __V: crate :: visit:: Visitor <' __ast>,
67
+ {
71
68
fn walk_ref( & ' __ast self , __visitor: & mut __V) -> __V:: Result {
72
69
match * self { #ref_visit }
73
- <__V:: Result as VisitorResult >:: output( )
70
+ <__V:: Result as rustc_ast_ir :: visit :: VisitorResult >:: output( )
74
71
}
75
72
}
76
73
77
- gen impl <__V: MutVisitor > MutWalkable <__V> for @Self {
74
+ gen impl <__V> crate :: mut_visit:: MutWalkable <__V> for @Self
75
+ where __V: crate :: mut_visit:: MutVisitor ,
76
+ {
78
77
fn walk_mut( & mut self , __visitor: & mut __V) {
79
78
match * self { #mut_visit }
80
79
}
0 commit comments