提交 34f61039 编写于 作者: D Douglas Campos

properly prefix with crate:: modules that are extern but not on the prelude

上级 0138d6d0
......@@ -4269,7 +4269,7 @@ fn lookup_import_candidates_from_module<FilterFn>(&mut self,
if filter_fn(name_binding.def()) {
// create the path
let mut segms = path_segments.clone();
if self.session.rust_2018() && !in_module_is_extern {
if self.session.rust_2018() {
// crate-local absolute paths start with `crate::` in edition 2018
// FIXME: may also be stabilized for Rust 2015 (Issues #45477, #44660)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册