rust/compiler/rustc_resolve
bors 42e5621c53 Auto merge of #84113 - SNCPlay42:suggestion-extern-crate, r=petrochenkov
Detect when suggested paths enter extern crates more rigorously

When reporting resolution errors, the compiler tries to avoid suggesting importing inaccessible paths from other crates. However, the search for suggestions only recognized when it was entering a crate root directly, and so failed to recognize a path like `crate::module::private_item`, where `module` was imported from another crate with `use other_crate::module`, as entering another crate.

Fixes #80079
Fixes #84081
2021-04-17 02:23:10 +00:00
..
src Auto merge of #84113 - SNCPlay42:suggestion-extern-crate, r=petrochenkov 2021-04-17 02:23:10 +00:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00