about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-17 02:23:10 +0000
committerbors <bors@rust-lang.org>2021-04-17 02:23:10 +0000
commit42e5621c534b9367ae8e8e332d95929206720a23 (patch)
treef550040d74c1e093b7905787d3855064d220bdb2 /compiler/rustc_codegen_llvm
parent84e93979e1b7fd7f786a8f92ca5bdd92f2be25e7 (diff)
parenta3ee0bb7264aaf59a2906ea28755c96d21405a68 (diff)
downloadrust-42e5621c534b9367ae8e8e332d95929206720a23.tar.gz
rust-42e5621c534b9367ae8e8e332d95929206720a23.zip
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
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions