-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustc_expand: Avoid ICE when creating AST with invalid Id if the error was already reported #81324
Conversation
…r was already reported Fixes rust-lang#81321
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
Error before:
Error after:
I'm not sure why I lost the second error... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
Errors like this in proc macros are supposed to be reported with panics, because such panics are caught at proc macro boundaries. |
Fixes #81321
I don't know if this is the right fix.. reviews would be appreciated!
If you think this is the right fix I'll try to add a test.