@@ -490,14 +490,14 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
490490 let value_result = self . resolve_name_in_module ( target_module, source, ValueNS , false , true ) ;
491491 let type_result = self . resolve_name_in_module ( target_module, source, TypeNS , false , true ) ;
492492
493- let module_ = self . current_module ;
493+ let module = self . current_module ;
494494 let mut privacy_error = true ;
495495 for & ( ns, result, determined) in & [ ( ValueNS , & value_result, value_determined) ,
496496 ( TypeNS , & type_result, type_determined) ] {
497497 match * result {
498498 Failed ( ..) if !determined. get ( ) => {
499499 determined. set ( true ) ;
500- self . update_resolution ( module_ , target, ns, |_, resolution| {
500+ self . update_resolution ( module , target, ns, |_, resolution| {
501501 resolution. single_imports . directive_failed ( )
502502 } ) ;
503503 }
@@ -506,17 +506,17 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
506506 span_err ! ( self . session, directive. span, E0253 , "{}" , & msg) ;
507507 // Do not import this illegal binding. Import a dummy binding and pretend
508508 // everything is fine
509- self . import_dummy_binding ( module_ , directive) ;
509+ self . import_dummy_binding ( module , directive) ;
510510 return Success ( ( ) ) ;
511511 }
512512 Success ( binding) if !self . is_accessible ( binding. vis ) => { }
513513 Success ( binding) if !determined. get ( ) => {
514514 determined. set ( true ) ;
515515 let imported_binding = directive. import ( binding) ;
516- let conflict = self . try_define ( module_ , target, ns, imported_binding) ;
516+ let conflict = self . try_define ( module , target, ns, imported_binding) ;
517517 if let Err ( old_binding) = conflict {
518518 let binding = & directive. import ( binding) ;
519- self . report_conflict ( module_ , target, ns, binding, old_binding) ;
519+ self . report_conflict ( module , target, ns, binding, old_binding) ;
520520 }
521521 privacy_error = false ;
522522 }
@@ -556,7 +556,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
556556 for & ( ns, result) in & [ ( ValueNS , & value_result) , ( TypeNS , & type_result) ] {
557557 let binding = match * result { Success ( binding) => binding, _ => continue } ;
558558 self . privacy_errors . push ( PrivacyError ( directive. span , source, binding) ) ;
559- let _ = self . try_define ( module_ , target, ns, directive. import ( binding) ) ;
559+ let _ = self . try_define ( module , target, ns, directive. import ( binding) ) ;
560560 }
561561 }
562562
@@ -615,8 +615,8 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
615615 self . session . span_err ( directive. span , "items in traits are not importable." ) ;
616616 }
617617
618- let module_ = self . current_module ;
619- if module_ . def_id ( ) == target_module. def_id ( ) {
618+ let module = self . current_module ;
619+ if module . def_id ( ) == target_module. def_id ( ) {
620620 // This means we are trying to glob import a module into itself, and it is a no-go
621621 let msg = "Cannot glob-import a module into itself." . into ( ) ;
622622 return Failed ( Some ( ( directive. span , msg) ) ) ;
@@ -629,7 +629,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
629629 }
630630
631631 // Add to target_module's glob_importers
632- target_module. glob_importers . borrow_mut ( ) . push ( ( module_ , directive) ) ;
632+ target_module. glob_importers . borrow_mut ( ) . push ( ( module , directive) ) ;
633633
634634 // Ensure that `resolutions` isn't borrowed during `try_define`,
635635 // since it might get updated via a glob cycle.
@@ -638,7 +638,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
638638 } ) . collect :: < Vec < _ > > ( ) ;
639639 for ( ( name, ns) , binding) in bindings {
640640 if binding. is_importable ( ) && binding. is_pseudo_public ( ) {
641- let _ = self . try_define ( module_ , name, ns, directive. import ( binding) ) ;
641+ let _ = self . try_define ( module , name, ns, directive. import ( binding) ) ;
642642 }
643643 }
644644
0 commit comments