File tree 1 file changed +3
-5
lines changed
compiler/rustc_passes/src
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
82
82
83
83
fn handle_res ( & mut self , res : Res ) {
84
84
match res {
85
- Res :: Def ( DefKind :: Const | DefKind :: AssocConst | DefKind :: TyAlias , _ ) => {
86
- self . check_def_id ( res . def_id ( ) ) ;
85
+ Res :: Def ( DefKind :: Const | DefKind :: AssocConst | DefKind :: TyAlias , def_id ) => {
86
+ self . check_def_id ( def_id) ;
87
87
}
88
88
_ if self . in_pat => { }
89
89
Res :: PrimTy ( ..) | Res :: SelfCtor ( ..) | Res :: Local ( ..) => { }
@@ -102,6 +102,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
102
102
self . check_def_id ( variant_id) ;
103
103
}
104
104
}
105
+ Res :: Def ( _, def_id) => self . check_def_id ( def_id) ,
105
106
Res :: SelfTy { trait_ : t, alias_to : i } => {
106
107
if let Some ( t) = t {
107
108
self . check_def_id ( t) ;
@@ -111,9 +112,6 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
111
112
}
112
113
}
113
114
Res :: ToolMod | Res :: NonMacroAttr ( ..) | Res :: Err => { }
114
- _ => {
115
- self . check_def_id ( res. def_id ( ) ) ;
116
- }
117
115
}
118
116
}
119
117
You can’t perform that action at this time.
0 commit comments