stop unleaking &muts in std and the compiler - #162766
Conversation
2aaa7e8 to
fe15c63
Compare
|
cc @rust-lang/miri |
|
I can't approve libs changes but count this as an approval for the compiler change |
|
r? me @bors r=hanna-kruppe,saethlin rollup |
Rollup merge of #162766 - maxdexh:unleak-considered-harmful, r=hanna-kruppe,saethlin stop unleaking `&mut`s in std and the compiler 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 all the dubious uses (I could find) of `Box::leak` from rustc and std r? libs
…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 (913889f): comparison URL. Overall result: ✅ improvements - 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 sizeResults (secondary -1.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: missing data |
As discussed on zulip, this PR removes all the dubious uses (I could find) of
Box::leakfrom rustc and stdr? libs