@@ -73,7 +73,7 @@ impl<'a, 'tcx> MarkSymbolVisitor<'a, 'tcx> {
73
73
Def :: Const ( _) | Def :: AssociatedConst ( ..) | Def :: TyAlias ( _) => {
74
74
self . check_def_id ( def. def_id ( ) ) ;
75
75
}
76
- _ if self . in_pat => ( ) ,
76
+ _ if self . in_pat => { } ,
77
77
Def :: PrimTy ( ..) | Def :: SelfTy ( ..) | Def :: SelfCtor ( ..) |
78
78
Def :: Local ( ..) | Def :: Upvar ( ..) => { }
79
79
Def :: Ctor ( ctor_def_id, CtorOf :: Variant , ..) => {
@@ -91,6 +91,7 @@ impl<'a, 'tcx> MarkSymbolVisitor<'a, 'tcx> {
91
91
self . check_def_id ( variant_id) ;
92
92
}
93
93
}
94
+ Def :: ToolMod | Def :: NonMacroAttr ( ..) | Def :: Err => { }
94
95
_ => {
95
96
self . check_def_id ( def. def_id ( ) ) ;
96
97
}
@@ -166,17 +167,13 @@ impl<'a, 'tcx> MarkSymbolVisitor<'a, 'tcx> {
166
167
}
167
168
hir:: ItemKind :: Enum ( ..) => {
168
169
self . inherited_pub_visibility = item. vis . node . is_pub ( ) ;
170
+
169
171
intravisit:: walk_item ( self , & item) ;
170
172
}
171
- hir:: ItemKind :: Fn ( ..)
172
- | hir:: ItemKind :: Ty ( ..)
173
- | hir:: ItemKind :: Static ( ..)
174
- | hir:: ItemKind :: Existential ( ..)
175
- | hir:: ItemKind :: Impl ( ..)
176
- | hir:: ItemKind :: Const ( ..) => {
173
+ hir:: ItemKind :: ForeignMod ( ..) => { }
174
+ _ => {
177
175
intravisit:: walk_item ( self , & item) ;
178
176
}
179
- _ => ( )
180
177
}
181
178
}
182
179
Node :: TraitItem ( trait_item) => {
@@ -188,7 +185,7 @@ impl<'a, 'tcx> MarkSymbolVisitor<'a, 'tcx> {
188
185
Node :: ForeignItem ( foreign_item) => {
189
186
intravisit:: walk_foreign_item ( self , & foreign_item) ;
190
187
}
191
- _ => ( )
188
+ _ => { }
192
189
}
193
190
self . repr_has_repr_c = had_repr_c;
194
191
self . inherited_pub_visibility = had_inherited_pub_visibility;
0 commit comments