File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2931,6 +2931,7 @@ impl<'a> Resolver<'a> {
2931
2931
2932
2932
let mut lookup_results = Vec :: new ( ) ;
2933
2933
let mut worklist = Vec :: new ( ) ;
2934
+ let mut seen_modules = FxHashSet ( ) ;
2934
2935
worklist. push ( ( self . graph_root , Vec :: new ( ) , false ) ) ;
2935
2936
2936
2937
while let Some ( ( in_module,
@@ -2976,7 +2977,7 @@ impl<'a> Resolver<'a> {
2976
2977
if !in_module_is_extern || name_binding. vis == ty:: Visibility :: Public {
2977
2978
// add the module to the lookup
2978
2979
let is_extern = in_module_is_extern || name_binding. is_extern_crate ( ) ;
2979
- if !worklist . iter ( ) . any ( | & ( m , .. ) | m . def ( ) == module . def ( ) ) {
2980
+ if seen_modules . insert ( module . def_id ( ) . unwrap ( ) ) {
2980
2981
worklist. push ( ( module, path_segments, is_extern) ) ;
2981
2982
}
2982
2983
}
Original file line number Diff line number Diff line change 10
10
11
11
// aux-build:recursive_reexports.rs
12
12
13
- fn f ( ) -> recursive_reexports:: S { } //~ ERROR undeclared
13
+ extern crate recursive_reexports;
14
+
15
+ fn f ( ) -> recursive_reexports:: S { } //~ ERROR type name `recursive_reexports::S` is undefined
14
16
15
17
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments