rust/compiler/rustc_resolve
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
..
src Rollup merge of #140795 - mu001999-contrib:sugg-stable-import-first, r=petrochenkov 2025-05-11 02:44:37 +02:00
Cargo.toml Suggest stable candidates rather than unstable ones 2025-05-09 22:05:59 +08:00
messages.ftl resolve: Support imports of associated types and glob imports from traits 2025-05-02 15:59:38 +03:00