-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
core: implement bool::select_unpredictable
#133964
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
Conversation
|
Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter cc @rust-lang/miri, @rust-lang/wg-const-eval |
|
|
+1, the usage at rust/library/core/src/slice/mod.rs Line 2838 in cdeddae
Docs and API lgtm, r=me with the above. |
Co-authored-by: Yotam Ofek <[email protected]> Co-authored-by: Hanna Kruppe <[email protected]>
I'm a bit hesitant about this since other instrinsics tests don't test the public variant either... |
|
At least Another option is to test both the intrinsic and the public method. |
tgross35
left a comment
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.
Since we don't test public versions of the other intrinsics, I suppose this is also fine without it. Though it seems there probably isn't any specific reason they don't exist, so it probably wouldn't hurt to have both if you are up for extending the existing tests.
yes, |
Tracking issue: #133962
ACP: rust-lang/libs-team#468