Repository navigation
Make NonNull::{read,write}_volatile unstably const. - #164051
Conversation
|
r? @clarfonthey rustbot has assigned @clarfonthey. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Makes sense, thanks! Can you add it to the tracking issue as well? |
|
Huh, so, these were implemented in consteval/miri already and just weren't turned on? Confused why only these methods need the const stability tagged. |
I am not a project member and cannot edit issue descriptions.
|
|
Oh, right, of course. For some reason I thought these were just the regular pointer methods. 🤦🏻 |
|
Updated the tracking issue for you, and also these look good to me. Thank you! @bors r+ rollup |
|
@bors yield to rollup |
|
Auto build was cancelled. Cancelled workflows: The next pull request likely to be tested is #164067. |
Rollup merge of #164051 - kpreid:nonnull-volatile, r=clarfonthey Make `NonNull::{read,write}_volatile` unstably const. #159092 added `const` to the functions `read_volatile` and `write_volatile` for `core::ptr`, `*const T`, and `*mut T`. This PR expands that to `NonNull<T>`, under the same feature `const_volatile`. Tracking issue: #159094 cc @RalfJung
#159092 added
constto the functionsread_volatileandwrite_volatileforcore::ptr,*const T, and*mut T. This PR expands that toNonNull<T>, under the same featureconst_volatile.Tracking issue: #159094
cc @RalfJung