about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-10 12:01:32 +0200
committerGitHub <noreply@github.com>2023-07-10 12:01:32 +0200
commit70c637808fdf43f5baf3e2359f3a0113d8f814fd (patch)
treeeb57078e645c0b4e2685d18194027e76219e2f3b /compiler/rustc_codegen_llvm/src/builder.rs
parent743333f3dd90721461c09387ec73d09c080d5f5f (diff)
parent37b40e592a71ce5c0af7901857f4123f6ff410f3 (diff)
downloadrust-70c637808fdf43f5baf3e2359f3a0113d8f814fd.tar.gz
rust-70c637808fdf43f5baf3e2359f3a0113d8f814fd.zip
Rollup merge of #113331 - chenyukang:yukang-fix-112590-false-positive, r=estebank
Add filter with following segment while lookup typo for path

From the discussion: https://github.com/rust-lang/rust/pull/112917#discussion_r1239150173

Seems we can not get the assoc items for `Struct`, `Enum` in the resolving phase.
A obvious filter is avoid suggesting the same name with the following segment path.

Use `following_seg` can extend the function `smart_resolve_partial_mod_path_errors` for more scenarios, such as `std::sync_error::atomic::AtomicBool` in test case.

r? `@estebank`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions