Skip to content

Commit 231bf22

Browse files
committed
check if we're trying to guess for a local module
1 parent 34f6103 commit 231bf22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_resolve/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4249,7 +4249,8 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
42494249
let mut candidates = Vec::new();
42504250
let mut worklist = Vec::new();
42514251
let mut seen_modules = FxHashSet();
4252-
worklist.push((start_module, Vec::new(), false));
4252+
let not_local_module = crate_name != keywords::Crate.ident();
4253+
worklist.push((start_module, Vec::new(), not_local_module));
42534254

42544255
while let Some((in_module,
42554256
path_segments,

0 commit comments

Comments
 (0)