about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-05-11 02:44:37 +0200
committerGitHub <noreply@github.com>2025-05-11 02:44:37 +0200
commit15df33326ece077f739185127464a0494cda2654 (patch)
tree854b24ac548c2e1d5df2949b4f317f433be84a77 /compiler/rustc_codegen_llvm/src/errors.rs
parent3c8950c30d20b4457feec172835aeb94ec714c72 (diff)
parent7c253ac504004d3749a35a167e702c084989b27b (diff)
downloadrust-15df33326ece077f739185127464a0494cda2654.tar.gz
rust-15df33326ece077f739185127464a0494cda2654.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions