Skip to content

fix ICE when debug-printing MIR #72424

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 26, 2020
Merged

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented May 21, 2020

Fixes #72105

This bug also makes debugging Miri harder as MIRI_LOG=info ICEs.

@rust-highfive
Copy link
Contributor

r? @varkor

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 21, 2020
@RalfJung
Copy link
Member Author

r? @oli-obk

@bors

This comment has been minimized.

@oli-obk
Copy link
Contributor

oli-obk commented May 25, 2020

@bors r+

@bors
Copy link
Collaborator

bors commented May 25, 2020

📌 Commit d59fa08 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 25, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request May 25, 2020
fix ICE when debug-printing MIR

Fixes rust-lang#72105

This bug also makes debugging Miri harder as `MIRI_LOG=info` ICEs.
This was referenced May 25, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request May 25, 2020
Rollup of 5 pull requests

Successful merges:

 - rust-lang#72061 (add regression tests for stalled_on const vars)
 - rust-lang#72424 (fix ICE when debug-printing MIR)
 - rust-lang#72450 (Fix ice-rust-lang#72442)
 - rust-lang#72451 (Perform MIR NRVO even if types don't match)
 - rust-lang#72538 (Removed all instances of const_field.)

Failed merges:

r? @ghost
@bors bors merged commit 0498845 into rust-lang:master May 26, 2020
@RalfJung RalfJung deleted the mir-print-ice branch May 27, 2020 06:23
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request May 29, 2020
Add test for rust-lang#66930

Closes rust-lang#66930
Closes rust-lang#67558

They're fixed by rust-lang#72424.
I skipped adding `--emit=mir` flag to src/test/ui/issues/issue-25145.rs as a regression test since the root cause seems the same and it should be run with `check-pass`, not `run-pass` so we should duplicate that test.

r? @RalfJung
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: expected memory, got Static(DefId(0:6 ... ice-zst-static-access.rs with --emir mir
5 participants