-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
feature(const_ptr_write) is broken #86236
Comments
It seems there were problems with it. See #86003. Looks like this feature was started as an experiment which is why there's no specific tracking issue. |
This can fortunately be worked around with plain pointer dereferencing and |
Yeah, this is an extremely annoying reversion that I hope is able to be un-reverted ASAP. So back to how things were a little over a week ago basically. It doesn't even just effect |
I'm not sure if broken is the right classification here, rather than that it is just gone. Given that this was an unstable functionality, I'm not seeing any benefit in tracking this disappearance. Closing. |
See #86295 for hopefully bringing these functions back. |
There's now also a proper tracking issue for this feature: #86302 |
…r=RalfJung Revert revert of constness in rust-lang#86003 Re-constify `mem::swap`, `mem::replace`, `ptr::write` which were marked as not `const` in rust-lang#86003 Once the checks pass, this should solve rust-lang#86236
As of a very recent nightly (
rustc 1.54.0-nightly (0a8629bff 2021-06-11)
), it appears to me thatfeature(const_ptr_write)
is no longer working and broke my code. Sample code:I see a tracking issue for many other pointer operations such as
const_ptr_read
, but strangely a tracking issue forconst_ptr_write
is missing.The text was updated successfully, but these errors were encountered: