-
Notifications
You must be signed in to change notification settings - Fork 13k
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
constify mem::forget #69617
constify mem::forget #69617
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ rollup |
📌 Commit a30b0a6 has been approved by |
Rollup of 6 pull requests Successful merges: - #68682 (Add documentation to compiler intrinsics) - #69544 (Unrevert "Remove `checked_add` in `Layout::repeat`") - #69617 (constify mem::forget) - #69622 (Rename `syntax` in librustc_ast/README.md) - #69623 (stash API: remove panic to fix ICE.) - #69624 (Toolstate: Don't block beta week on already broken tools.) Failed merges: - #69626 (Toolstate: don't duplicate nightly tool list.) r? @ghost
No test for this? |
Im writing them now! |
…lan-DPC const forget tests Adds tests for rust-lang#69617
…lan-DPC const forget tests Adds tests for rust-lang#69617
Constification PRs should always Cc @rust-lang/wg-const-eval |
@RalfJung Sorry, will do in the future! |
I was made aware of this [here](rust-lang/rust#69617 (comment)). I guess this note is useful in this document.
…t-lang#326) I was made aware of this [here](rust-lang/rust#69617 (comment)). I guess this note is useful in this document.
Next time someone adds a const-intrinsic, please make sure to also remove the (then obsolete) implementation in Miri once it lands. |
Oh wait, this does not even use the intrinsic... oops sorry.^^ |
stabilize const mem::forget Stabilizes const `mem::forget` as implemented in rust-lang#69617 and tracked in rust-lang#69616. Closes rust-lang#69616
implements #69616