Repository navigation
Remove Box::into_unique - #162763
Remove Box::into_unique#162763
Box::into_unique#162763Conversation
|
|
|
cc @rust-lang/miri |
|
Should I move the test changes to the miri repo and wait until it gets merged back to remove the method? Idk how this stuff usually works |
|
Nono it's fine. :) |
|
I don't have bors perms, so you're gonna have to r=yourself ^^ (or use whatever the delegate command was, idk nia did that once) |
|
@bors delegate+ |
c60ec3e to
1a21818
Compare
|
@bors r=RalfJung |
Rollup merge of #162763 - maxdexh:remove-into-unique, r=RalfJung Remove `Box::into_unique` As discussed on [zulip](https://rust-lang.zulipchat.com/#narrow/channel/136281-t-opsem/topic/What.20is.20the.20current.20state.20of.20unleaking.20a.20.60Box.3CT.2C.20Global.3E.60.3F/with/623860839), this PR removes the `Box::into_unique` method and also adds a test for `into_raw_with_allocator`. Note that all uses of `into_unique` were already removed from std in #162732. The only remaining use was a Miri test. I didn't copy over the "lose the tag" operation for the `into_raw_with_allocator` test, because the file you wanted me to put this in doesn't have `-Zmiri-permissive-provenance` ^^ r? RalfJung
…uwer Rollup of 3 pull requests Successful merges: - rust-lang/rust#162409 (Fix gap in const stability checks around intrinsics) - rust-lang/rust#162763 (Remove `Box::into_unique`) - rust-lang/rust#162766 (stop unleaking `&mut`s in std and the compiler)
|
Note This PR was benchmarked as part of triage of its containing rollup: triage URL. Finished benchmarking commit (55e90fc): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: missing data |
As discussed on zulip, this PR removes the
Box::into_uniquemethod and also adds a test forinto_raw_with_allocator.Note that all uses of
into_uniquewere already removed from std in #162732. The only remaining use was a Miri test.I didn't copy over the "lose the tag" operation for the
into_raw_with_allocatortest, because the file you wanted me to put this in doesn't have-Zmiri-permissive-provenance^^r? RalfJung