-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add a conversion from &mut T
to &mut UnsafeCell<T>
#111654
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @thomcc (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot label +T-libs-api -T-libs |
@bors r=joshtriplett |
Rollup of 6 pull requests Successful merges: - rust-lang#110145 (Share slice of bytes) - rust-lang#111043 (Stabilize feature `cstr_is_empty`) - rust-lang#111648 (Remove `LangItems::require`) - rust-lang#111649 (Add derive for `core::marker::ConstParamTy`) - rust-lang#111654 (Add a conversion from `&mut T` to `&mut UnsafeCell<T>`) - rust-lang#111661 (Erase regions of type in `offset_of!`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Provides a safe way of downgrading an exclusive reference into an alias-able
&UnsafeCell<T>
reference.ACP: rust-lang/libs-team#198.