-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Stabilize UnsafeCell::from_mut
#131261
Stabilize UnsafeCell::from_mut
#131261
Conversation
874aee7
to
6828a1e
Compare
This seems fine to me, but FCP did not include r? libs-api Cc @rust-lang/wg-const-eval |
No objections from the const-eval side. But yeah the question is whether libs-api wants to retroactively add |
I am not unilaterally approving a |
Discussed in libs-api meeting. @bors r+ |
…r=m-ou-se Stabilize `UnsafeCell::from_mut` Closes rust-lang#111645. FCP: rust-lang#111645 (comment) Note that because `const_mut_refs` and `const_refs_to_cell` was stabilized, it's okay to const-stabilize this method as well.
The "cfg_attr(bootstrap" is no longer needed.
|
... But now the PR already got rolled up so please don't change it any more. Once it lands please file a follow up PR removing the unnecessary attribute.
|
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#131261 (Stabilize `UnsafeCell::from_mut`) - rust-lang#131405 (bootstrap/codegen_ssa: ship llvm-strip and use it for -Cstrip) - rust-lang#132077 (Add a new `wide-arithmetic` feature for WebAssembly) - rust-lang#132562 (Remove the `wasm32-wasi` target from rustc) - rust-lang#132660 (Remove unused errs.rs file) Failed merges: - rust-lang#131721 (Add new unstable feature `const_eq_ignore_ascii_case`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#131261 - clarfonthey:unsafe-cell-from-mut, r=m-ou-se Stabilize `UnsafeCell::from_mut` Closes rust-lang#111645. FCP: rust-lang#111645 (comment) Note that because `const_mut_refs` and `const_refs_to_cell` was stabilized, it's okay to const-stabilize this method as well.
Closes #111645.
FCP: #111645 (comment)
Note that because
const_mut_refs
andconst_refs_to_cell
was stabilized, it's okay to const-stabilize this method as well.