File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 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> {
8282
8383 fn handle_res ( & mut self , res : Res ) {
8484 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) ;
8787 }
8888 _ if self . in_pat => { }
8989 Res :: PrimTy ( ..) | Res :: SelfCtor ( ..) | Res :: Local ( ..) => { }
@@ -102,6 +102,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
102102 self . check_def_id ( variant_id) ;
103103 }
104104 }
105+ Res :: Def ( _, def_id) => self . check_def_id ( def_id) ,
105106 Res :: SelfTy { trait_ : t, alias_to : i } => {
106107 if let Some ( t) = t {
107108 self . check_def_id ( t) ;
@@ -111,9 +112,6 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
111112 }
112113 }
113114 Res :: ToolMod | Res :: NonMacroAttr ( ..) | Res :: Err => { }
114- _ => {
115- self . check_def_id ( res. def_id ( ) ) ;
116- }
117115 }
118116 }
119117
You can’t perform that action at this time.
0 commit comments