@@ -342,8 +342,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
342
342
&& ( vis == import_vis
343
343
|| max_vis. get ( ) . is_none_or ( |max_vis| vis. is_at_least ( max_vis, self . tcx ) ) )
344
344
{
345
- // FIXME(batched): Will be fixed in batched import resolution.
346
- max_vis. set_unchecked ( Some ( vis. expect_local ( ) ) )
345
+ max_vis. set ( Some ( vis. expect_local ( ) ) , self )
347
346
}
348
347
349
348
self . arenas . alloc_name_binding ( NameBindingData {
@@ -979,8 +978,9 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
979
978
import : Import < ' ra > ,
980
979
) -> ( Option < SideEffect < ' ra > > , usize ) {
981
980
debug ! (
982
- "(resolving import for module) resolving import `{}::... ` in `{}`" ,
981
+ "(resolving import for module) resolving import `{}::{} ` in `{}`" ,
983
982
Segment :: names_to_string( & import. module_path) ,
983
+ import_kind_to_string( & import. kind) ,
984
984
module_to_string( import. parent_scope. module) . unwrap_or_else( || "???" . to_string( ) ) ,
985
985
) ;
986
986
let module = if let Some ( module) = import. imported_module . get ( ) {
@@ -1047,7 +1047,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
1047
1047
None
1048
1048
}
1049
1049
} ;
1050
- // FIXME(batched): Will be fixed in batched import resolution.
1051
1050
import_bindings[ ns] = pending_binding;
1052
1051
}
1053
1052
}
@@ -1648,7 +1647,8 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
1648
1647
1649
1648
module. for_each_child ( self , |this, ident, _, binding| {
1650
1649
let res = binding. res ( ) . expect_non_local ( ) ;
1651
- if res != def:: Res :: Err && !binding. is_ambiguity_recursive ( ) {
1650
+ let error_ambiguity = binding. is_ambiguity_recursive ( ) && !binding. warn_ambiguity ;
1651
+ if res != def:: Res :: Err && !error_ambiguity {
1652
1652
let mut reexport_chain = SmallVec :: new ( ) ;
1653
1653
let mut next_binding = binding;
1654
1654
while let NameBindingKind :: Import { binding, import, .. } = next_binding. kind {
0 commit comments