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
{{ message }}
Repository navigation
internal drop_in_place shim should take &mut arguments #154274
The signature of drop_in_place says that it takes a raw pointer, but we have hacks in place to actually treat that argument as-if it was a mutable reference. These hacks are now part of the MIR semantics and have to be replicated in every MIR consumer that cares about aliasing, i.e., Miri will need a similar logic (as part of a refactor where we no longer use Retag statements).
This is obviously not great; if we want the argument of those functions to be &mut T we should just change it to literally have that type. We can keep the public method in std::ptr unchanged, it can dispatch to the actual function that does take a mutable reference.
Activity
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…
Auto merge of #154327 - WaffleLapkin:drop_in_place_ref, r=RalfJung,sc…