-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
make custom mir ICE a bit nicer #113039
make custom mir ICE a bit nicer #113039
Conversation
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
@@ -118,7 +118,7 @@ fn parse_attribute(attr: &Attribute) -> MirPhase { | |||
phase = Some(value); | |||
} | |||
other => { | |||
panic!("Unexpected key {}", other); | |||
bug!("Unexpected key while parsing custom_mir attribute: '{}'", other); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bug!("Unexpected key while parsing custom_mir attribute: '{}'", other); | |
span_bug!(nested.span, "Unexpected key while parsing custom_mir attribute: '{}'", other); |
I think this works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me preferably with change. i think there's some span you can use here.
@bors rollup=always r=compiler-errors |
…iaskrgr Rollup of 3 pull requests Successful merges: - rust-lang#113039 (make custom mir ICE a bit nicer) - rust-lang#113058 (Add/improve code comments) - rust-lang#113063 (Update books) r? `@ghost` `@rustbot` modify labels: rollup
o.O |
No description provided.