-
Notifications
You must be signed in to change notification settings - Fork 2.5k
chore: Update rustc to 'nightly-2025-04-19' #22342
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| #[cfg(feature = "nightly")] | ||
| pub fn select_unpredictable<T>(cond: bool, true_val: T, false_val: T) -> T { | ||
| cond.select_unpredictable(true_val, false_val) | ||
| core::intrinsics::select_unpredictable(cond, true_val, false_val) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rustc complained that the method didn't exist anymore, so we call the intrinsic directly.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this rust-lang/rust#139726.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, yeap. :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be core::hint, not core::intrinsics. |
||
| } | ||
|
|
||
| #[cfg(not(feature = "nightly"))] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| [toolchain] | ||
| channel = "nightly-2025-03-07" | ||
| channel = "nightly-2025-04-19" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New lint