rust/compiler/rustc_resolve/src
Matthias Krüger 70c637808f
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`
2023-07-10 12:01:32 +02:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Rollup merge of #113331 - chenyukang:yukang-fix-112590-false-positive, r=estebank 2023-07-10 12:01:32 +02:00
build_reduced_graph.rs resolve: Use Interned for Module 2023-07-05 13:47:36 +03:00
check_unused.rs Use is_some_and/is_ok_and in less obvious spots 2023-05-24 14:33:43 +00:00
def_collector.rs Remove the NodeId of ast::ExprKind::Async 2023-03-19 19:01:31 +01:00
diagnostics.rs resolve: Use Interned for Module 2023-07-05 13:47:36 +03:00
effective_visibilities.rs resolve: Use Interned for NameBinding 2023-07-05 13:47:36 +03:00
errors.rs Add translatable diagnostic for import resolution strings 2023-06-25 08:29:28 +01:00
ident.rs resolve: Use Interned for Module 2023-07-05 13:47:36 +03:00
imports.rs resolve: Add comments explaining use of Interned 2023-07-05 13:47:37 +03:00
late.rs Rollup merge of #113331 - chenyukang:yukang-fix-112590-false-positive, r=estebank 2023-07-10 12:01:32 +02:00
lib.rs resolve: Add comments explaining use of Interned 2023-07-05 13:47:37 +03:00
macros.rs resolve: Use Interned for NameBinding 2023-07-05 13:47:36 +03:00
rustdoc.rs rustdoc: fix ICE from rustc_resolve and librustdoc parse divergence 2023-04-18 12:22:13 -07:00