@@ -388,7 +388,7 @@ impl<'a> Resolver<'a> {
388388 None => return Err ( ( Undetermined , Weak :: Yes ) ) ,
389389 } ;
390390 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 ) {
392392 Some ( Some ( def) ) => self . current_module = self . macro_def_scope ( def) ,
393393 Some ( None ) => { }
394394 None => continue ,
@@ -605,8 +605,7 @@ impl<'a> Resolver<'a> {
605605 // Define `binding` in `module`s glob importers.
606606 for directive in module. glob_importers . borrow_mut ( ) . iter ( ) {
607607 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 ) {
610609 Some ( Some ( def) ) => self . macro_def_scope ( def) ,
611610 Some ( None ) => directive. parent_scope . module ,
612611 None => continue ,
@@ -1359,8 +1358,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
13591358 resolution. borrow ( ) . binding ( ) . map ( |binding| ( ident, binding) )
13601359 } ) . collect :: < Vec < _ > > ( ) ;
13611360 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 ) {
13641362 Some ( Some ( def) ) => self . macro_def_scope ( def) ,
13651363 Some ( None ) => self . current_module ,
13661364 None => continue ,
0 commit comments