File tree 1 file changed +6
-6
lines changed
compiler/rustc_resolve/src
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -913,12 +913,6 @@ impl<'a> Resolver<'a> {
913
913
return Err ( ( Determined , Weak :: No ) ) ;
914
914
} ;
915
915
916
- if !restricted_shadowing && binding. expansion != LocalExpnId :: ROOT {
917
- if let NameBindingKind :: Res ( _, true ) = binding. kind {
918
- self . macro_expanded_macro_export_errors . insert ( ( path_span, binding. span ) ) ;
919
- }
920
- }
921
-
922
916
// If the primary binding is unusable, search further and return the shadowed glob
923
917
// binding if it exists. What we really want here is having two separate scopes in
924
918
// a module - one for non-globs and one for globs, but until that's done use this
@@ -965,6 +959,12 @@ impl<'a> Resolver<'a> {
965
959
} ) ;
966
960
}
967
961
962
+ if !restricted_shadowing && binding. expansion != LocalExpnId :: ROOT {
963
+ if let NameBindingKind :: Res ( _, true ) = binding. kind {
964
+ self . macro_expanded_macro_export_errors . insert ( ( path_span, binding. span ) ) ;
965
+ }
966
+ }
967
+
968
968
self . record_use ( ident, binding, restricted_shadowing) ;
969
969
return Ok ( binding) ;
970
970
}
You can’t perform that action at this time.
0 commit comments