提交 231bf229 编写于 作者: D Douglas Campos

check if we're trying to guess for a local module

上级 34f61039
......@@ -4249,7 +4249,8 @@ fn lookup_import_candidates_from_module<FilterFn>(&mut self,
let mut candidates = Vec::new();
let mut worklist = Vec::new();
let mut seen_modules = FxHashSet();
worklist.push((start_module, Vec::new(), false));
let not_local_module = crate_name != keywords::Crate.ident();
worklist.push((start_module, Vec::new(), not_local_module));
while let Some((in_module,
path_segments,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册