-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
"do not use optimized_mir
for constants" panic when generating MIR cfg
#81918
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-mir-opt
Area: MIR optimizations
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
@oli-obk I think the panic was added by you. Could you say a few words on what the issue here? I'd be happy to investigate further and fix, but I have no idea where to start. |
That's an oversight by me. In
instance_mir instead of optimized_mir , but also create a second dump for const fn by additionally using mir_for_ctfe to show the graph of the ctfe version of the const fn
|
#81200 is somewhat related, as we should probably first fix that one and then deduplicate the mir selection logic between cfg printing and regular mir dumps. |
#82326 has a smaller repro. |
Merged
@rustbot claim |
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 22, 2021
Fix mir-cfg dumps Fixes rust-lang#81918 Fixes rust-lang#82326 (duplicate) Fixes rust-lang#82325 --- r? `@oli-obk`
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Feb 23, 2021
Fix mir-cfg dumps Fixes rust-lang#81918 Fixes rust-lang#82326 (duplicate) Fixes rust-lang#82325 --- r? ``@oli-obk``
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-mir-opt
Area: MIR optimizations
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The working example in #72956 builds fine, but if I add
-Zunpretty=mir-cfg
it panics. Repro:It builds fine:
Panics with
-Zunpretty=mir-cfg
:Backtrace
The text was updated successfully, but these errors were encountered: