@@ -257,7 +257,7 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
257
257
errors. extend ( self . resolve_imports_for_module ( module_) ) ;
258
258
self . resolver . current_module = orig_module;
259
259
260
- build_reduced_graph:: populate_module_if_necessary ( self . resolver , & module_) ;
260
+ build_reduced_graph:: populate_module_if_necessary ( self . resolver , module_) ;
261
261
module_. for_each_local_child ( |_, _, child_node| {
262
262
match child_node. module ( ) {
263
263
None => {
@@ -345,14 +345,14 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
345
345
// We found the module that the target is contained
346
346
// within. Attempt to resolve the import within it.
347
347
if let SingleImport ( target, source) = import_directive. subclass {
348
- self . resolve_single_import ( & module_,
348
+ self . resolve_single_import ( module_,
349
349
containing_module,
350
350
target,
351
351
source,
352
352
import_directive,
353
353
lp)
354
354
} else {
355
- self . resolve_glob_import ( & module_, containing_module, import_directive, lp)
355
+ self . resolve_glob_import ( module_, containing_module, import_directive, lp)
356
356
}
357
357
} )
358
358
. and_then ( |( ) | {
@@ -465,9 +465,9 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
465
465
466
466
// We need to resolve both namespaces for this to succeed.
467
467
let ( value_result, value_used_reexport) =
468
- self . resolve_name_in_module ( & target_module, source, ValueNS , module_) ;
468
+ self . resolve_name_in_module ( target_module, source, ValueNS , module_) ;
469
469
let ( type_result, type_used_reexport) =
470
- self . resolve_name_in_module ( & target_module, source, TypeNS , module_) ;
470
+ self . resolve_name_in_module ( target_module, source, TypeNS , module_) ;
471
471
472
472
match ( & value_result, & type_result) {
473
473
( & Success ( ( _, ref name_binding) ) , _) if !value_used_reexport &&
@@ -585,7 +585,7 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
585
585
if let ( & Failed ( _) , & Failed ( _) ) = ( & value_result, & type_result) {
586
586
let msg = format ! ( "There is no `{}` in `{}`{}" ,
587
587
source,
588
- module_to_string( & target_module) , lev_suggestion) ;
588
+ module_to_string( target_module) , lev_suggestion) ;
589
589
return Failed ( Some ( ( directive. span , msg) ) ) ;
590
590
}
591
591
@@ -711,7 +711,7 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
711
711
}
712
712
713
713
// Add all children from the containing module.
714
- build_reduced_graph:: populate_module_if_necessary ( self . resolver , & target_module) ;
714
+ build_reduced_graph:: populate_module_if_necessary ( self . resolver , target_module) ;
715
715
716
716
target_module. for_each_local_child ( |name, ns, name_binding| {
717
717
self . merge_import_resolution ( module_,
0 commit comments