-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make intrinsics::assume
const stable
#119583
Conversation
Closes rust-lang#76972 Blocks rust-lang#119452 Approved in rust-lang#119452 (comment)
The intrinsic itself is still unstable so it can't be called from stable code; this just affects whether stable const fn inside core/std can call this intrinsic. LGTM! @bors r+ rollup |
There is a test for this, right? Just double checking. |
It's a regular unstable intrinsic. I don't think we need a test for each unstable intrinsic that it can't be called from stable. Whether we have a test for the general situation of "unstable but const-stable item", I do not know. The machinery for that is not new. |
…mpiler-errors Rollup of 10 pull requests Successful merges: - rust-lang#119034 (Allow coverage tests to ignore test modes, and to enable color in coverage reports) - rust-lang#119148 (Tweak suggestions for bare trait used as a type) - rust-lang#119538 (Cleanup error handlers: round 5) - rust-lang#119566 (Remove `-Zdump-mir-spanview`) - rust-lang#119567 (Remove `-Zreport-delayed-bugs`.) - rust-lang#119577 (Migrate memory overlap check from validator to lint) - rust-lang#119583 (Make `intrinsics::assume` const stable) - rust-lang#119586 ([rustdoc] Fix invalid handling for static method calls in jump to definition feature) - rust-lang#119588 (Move `i586-unknown-netbsd` from tier 2 to tier 3 platform support table) - rust-lang#119601 (`Emitter` cleanups) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#119583 - AngelicosPhosphoros:const_assume, r=RalfJung Make `intrinsics::assume` const stable Closes rust-lang#76972 Blocks rust-lang#119452 Approved in rust-lang#119452 (comment) r? `@RalfJung`
Closes #76972
Blocks #119452
Approved in #119452 (comment)
r? @RalfJung