You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to introduce a general invariant relaxation method in the form:
fnrelax_invariants<J>(self) -> Ptr<'a,T,J>whereI: invariants::AtLeast<J>,{// SAFETY: `I` is at least as restrictive as `J`.unsafe{Ptr::from_ptr(self)}}
WARNING: This might be unsound per #1866.
This builds on machinery introduced in #1166.
It would be nice to introduce a general invariant relaxation method in the form:
...and call it in our specific
.forget_*
methods.We think this might be blocked on stabilizing
feature(marker_trait_attr)
(rust-lang/rust#29864).The text was updated successfully, but these errors were encountered: