@@ -46,7 +46,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
46
46
Some ( ty) => ty. span ,
47
47
_ => tcx. def_span ( item) ,
48
48
} ;
49
- visitor. visit ( span, tcx. type_of ( item) . instantiate_identity ( ) ) ;
49
+ visitor. visit ( span, tcx. type_of ( item) . instantiate_identity ( ) ) ;
50
50
for ( pred, span) in tcx. predicates_of ( item) . instantiate_identity ( tcx) {
51
51
visitor. visit ( span, pred) ?;
52
52
}
@@ -59,7 +59,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
59
59
// Look at field types
60
60
DefKind :: Struct | DefKind :: Union | DefKind :: Enum => {
61
61
let span = tcx. def_ident_span ( item) . unwrap ( ) ;
62
- visitor. visit ( span, tcx. type_of ( item) . instantiate_identity ( ) ) ;
62
+ visitor. visit ( span, tcx. type_of ( item) . instantiate_identity ( ) ) ;
63
63
for ( pred, span) in tcx. predicates_of ( item) . instantiate_identity ( tcx) {
64
64
visitor. visit ( span, pred) ?;
65
65
}
@@ -81,7 +81,8 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
81
81
visitor. visit ( span, tcx. type_of ( item) . instantiate_identity ( ) ) ;
82
82
for ( pred, span) in tcx. predicates_of ( item) . instantiate_identity ( tcx) {
83
83
visitor. visit ( span, pred) ?;
84
- } }
84
+ }
85
+ }
85
86
DefKind :: TraitAlias | DefKind :: Trait => {
86
87
for ( pred, span) in tcx. predicates_of ( item) . instantiate_identity ( tcx) {
87
88
visitor. visit ( span, pred) ?;
0 commit comments