about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-24 01:30:24 +0200
committerGitHub <noreply@github.com>2019-05-24 01:30:24 +0200
commit3388028776ef606335d0b04373323c02248e6c7e (patch)
tree929cb9a97af24eba9d05ca8226b620cf6a25c9f9 /src/test/ui/thinlto
parentee972100b2b2a504057e6b6c37e44633f5bbcc73 (diff)
parent8d4e7fde479e018d3caf37d1d12f47710183252e (diff)
downloadrust-3388028776ef606335d0b04373323c02248e6c7e.tar.gz
rust-3388028776ef606335d0b04373323c02248e6c7e.zip
Rollup merge of #61086 - RalfJung:box, r=alexcrichton
Box::into_unique: do the reborrow-to-raw *after* destroying the Box

Currently we first "reborrow" the box to a raw pointer, and then `forget` it. When tracking raw pointers more strictly (something I am experimenting with locally in Miri), the "use" induced by passing the box to `forget` invalidates the previously created raw pointer.

So adjust my hack from https://github.com/rust-lang/rust/pull/58429 to reorder the two operations.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions