rust/compiler/rustc_resolve/src
León Orell Valerian Liehr 15df33326e
Rollup merge of #140795 - mu001999-contrib:sugg-stable-import-first, r=petrochenkov
Prefer to suggest stable candidates rather than unstable ones

Fixes #140240

The logic is to replace unstable suggestions if we meet a new stable one, and do nothing if any other situation. In old logic, we just use the first candidate we meet as the suggestion for the same items.

E.g., `std::range::legacy::Range` vs `std::ops::Range`, `legacy` in the former is unstable, we prefer to suggest use the latter.
2025-05-11 02:44:37 +02:00
..
late Suggest stable candidates rather than unstable ones 2025-05-09 22:05:59 +08:00
build_reduced_graph.rs Remove Ident::empty. 2025-05-09 13:57:49 +10:00
check_unused.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
def_collector.rs Address review comments. 2025-04-01 16:07:23 +11:00
diagnostics.rs Suggest stable candidates rather than unstable ones 2025-05-09 22:05:59 +08:00
effective_visibilities.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
errors.rs resolve: Support imports of associated types and glob imports from traits 2025-05-02 15:59:38 +03:00
ident.rs Avoid an empty trait name in impl blocks. 2025-04-09 15:01:14 +10:00
imports.rs resolve: Support imports of associated types and glob imports from traits 2025-05-02 15:59:38 +03:00
late.rs Add or-patterns to pattern types 2025-04-28 07:50:18 +00:00
lib.rs Remove Ident::empty. 2025-05-09 13:57:49 +10:00
macros.rs Remove #[rustc_macro_edition_2021]. 2025-04-20 11:15:46 +02:00
rustdoc.rs rustc_resolve: prevent iteration of refids for completeness 2025-03-27 12:39:48 -04:00