-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Box::into_raw: make Miri understand that this is a box-to-raw cast #124013
Conversation
The Miri subtree was changed cc @rust-lang/miri |
Please choose another assignee. (see documentation) |
r? @oli-obk |
Could not assign reviewer from: |
Please choose another assignee. (see documentation) |
r? @lqd |
Could not assign reviewer from: |
Please choose another assignee. (see documentation) |
Please choose another assignee. (see documentation) |
r? @oli-obk |
Could not assign reviewer from: |
r? @oli-obk |
Could not assign reviewer from: |
r? @oli-obk |
I'll unsubscribe, please ping me if the PR needs work. |
r? @apiraino |
r? @apiraino |
…llaumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#123673 (Don't ICE for kind mismatches during error rendering) - rust-lang#123675 (Taint const qualifs if a static is referenced that didn't pass wfcheck) - rust-lang#123975 (Port the 2 `rust-lld` run-make tests to `rmake`) - rust-lang#124000 (Use `/* value */` as a placeholder) - rust-lang#124013 (Box::into_raw: make Miri understand that this is a box-to-raw cast) - rust-lang#124027 (Prefer identity equality over equating types during coercion.) - rust-lang#124036 (Remove `default_hidden_visibility: false` from wasm targets) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124013 - RalfJung:box-to-raw, r=oli-obk Box::into_raw: make Miri understand that this is a box-to-raw cast Turns out rust-lang#122647 went a bit too far in cleaning up `Box`... we still need a hack in `Box::into_raw`. The nicer fix would be to make Stacked Borrows not care about reference-to-raw-pointer casts, but it's unclear whether that will ever be possible without going to full Tree Borrows. Fixes rust-lang/miri#3473.
Turns out #122647 went a bit too far in cleaning up
Box
... we still need a hack inBox::into_raw
. The nicer fix would be to make Stacked Borrows not care about reference-to-raw-pointer casts, but it's unclear whether that will ever be possible without going to full Tree Borrows.Fixes rust-lang/miri#3473.