-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Prefer to suggest stable candidates rather than unstable ones #140795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer to suggest stable candidates rather than unstable ones #140795
Conversation
rustbot has assigned @petrochenkov. Use |
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
76e7050
to
7b0ff5c
Compare
@rustbot ready |
7b0ff5c
to
7c253ac
Compare
@rustbot ready |
@bors r+ |
Rollup of 7 pull requests Successful merges: - rust-lang#140792 (Use intrinsics for `{f16,f32,f64,f128}::{minimum,maximum}` operations) - rust-lang#140795 (Prefer to suggest stable candidates rather than unstable ones) - rust-lang#140865 (Make t letter looks like lowercase rather than uppercase) - rust-lang#140878 (Two expand-related cleanups) - rust-lang#140882 (Split duration_constructors to get non-controversial constructors out) - rust-lang#140886 (Update deps of bootstrap for Cygwin) - rust-lang#140903 (test intrinsic fallback bodies with Miri) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#140795 - mu001999-contrib:sugg-stable-import-first, r=petrochenkov Prefer to suggest stable candidates rather than unstable ones Fixes rust-lang#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.
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
vsstd::ops::Range
,legacy
in the former is unstable, we prefer to suggest use the latter.