-
Notifications
You must be signed in to change notification settings - Fork 901
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
ICE error was constructed but not emitted
#5728
Comments
@matthiaskrgr what version of rustfmt are you using? I think I know why this is happening, but I'm unable to reproduce it with |
rustfmt 1.5.2-nightly (17c1167 2023-03-29) |
@matthiaskrgr we haven't done a subtree sync in a little while so we're still using |
It's the regular vanilla nightly rustfmt that everyone can install via rustfmt :D |
@ytmimi I suspect that grabbing the version of rustfmt that shipped with the most recent nightly toolchain (perhaps going back a day or two) can be used to reproduce this. Not intended to be a rationalization for ICE behavior, but, rustfmt has a fairly rudimentary handrolled parsing process for The ICE behavior is relatively new, and most likely related to recent updates to rustc's parsing process. We can and should prevent the ICE, but unless |
@matthiaskrgr @calebcartwright thank you both for clarifying! I've installed @calebcartwright it seems that we don't emit the ICE when the input comes from
But we do emit it when the input comes from a file:
|
And the plot thickens.. |
@calebcartwright The fix for this ICE is pretty simple. I'll have a PR ready a little later. |
The text was updated successfully, but these errors were encountered: