@@ -388,7 +388,7 @@ impl<'a> Resolver<'a> {
388
388
None => return Err ( ( Undetermined , Weak :: Yes ) ) ,
389
389
} ;
390
390
let ( orig_current_module, mut ident) = ( self . current_module , ident. modern ( ) ) ;
391
- match ident. span . glob_adjust ( module. expansion , glob_import. span . ctxt ( ) . modern ( ) ) {
391
+ match ident. span . glob_adjust ( module. expansion , glob_import. span ) {
392
392
Some ( Some ( def) ) => self . current_module = self . macro_def_scope ( def) ,
393
393
Some ( None ) => { }
394
394
None => continue ,
@@ -605,8 +605,7 @@ impl<'a> Resolver<'a> {
605
605
// Define `binding` in `module`s glob importers.
606
606
for directive in module. glob_importers . borrow_mut ( ) . iter ( ) {
607
607
let mut ident = ident. modern ( ) ;
608
- let scope = match ident. span . reverse_glob_adjust ( module. expansion ,
609
- directive. span . ctxt ( ) . modern ( ) ) {
608
+ let scope = match ident. span . reverse_glob_adjust ( module. expansion , directive. span ) {
610
609
Some ( Some ( def) ) => self . macro_def_scope ( def) ,
611
610
Some ( None ) => directive. parent_scope . module ,
612
611
None => continue ,
@@ -1359,8 +1358,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
1359
1358
resolution. borrow ( ) . binding ( ) . map ( |binding| ( ident, binding) )
1360
1359
} ) . collect :: < Vec < _ > > ( ) ;
1361
1360
for ( ( mut ident, ns) , binding) in bindings {
1362
- let scope = match ident. span . reverse_glob_adjust ( module. expansion ,
1363
- directive. span . ctxt ( ) . modern ( ) ) {
1361
+ let scope = match ident. span . reverse_glob_adjust ( module. expansion , directive. span ) {
1364
1362
Some ( Some ( def) ) => self . macro_def_scope ( def) ,
1365
1363
Some ( None ) => self . current_module ,
1366
1364
None => continue ,
0 commit comments