-
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
ICE: attrs: error was constructed but not emitted
#118575
Comments
Reduced further: fn outer() -> u8 {
#[cfg(foo)]
cfg(foo)
#[]
} searched nightlies: from nightly-2023-11-17 to nightly-2023-12-02 bisected with cargo-bisect-rustc v0.6.7Host triple: x86_64-pc-windows-msvc cargo bisect-rustc Looks like #117988 |
This might be a duplicate of #118164, now that I've taken another look at it |
When I checked, 118164 was already fixed but this one wasn't |
Can be further reduced to fn outer() {
#[cfg(foo)]
cfg
#[]
} |
Properly recover from trailing attr in body When encountering an attribute in a body, we try to recover from an attribute on an expression (as opposed to a statement). We need to properly clean up when the attribute is at the end of the body where a tail expression would be. Fix rust-lang#118164, fix rust-lang#118575.
Properly recover from trailing attr in body When encountering an attribute in a body, we try to recover from an attribute on an expression (as opposed to a statement). We need to properly clean up when the attribute is at the end of the body where a tail expression would be. Fix rust-lang#118164, fix rust-lang#118575.
Properly recover from trailing attr in body When encountering an attribute in a body, we try to recover from an attribute on an expression (as opposed to a statement). We need to properly clean up when the attribute is at the end of the body where a tail expression would be. Fix rust-lang#118164, fix rust-lang#118575.
Rollup merge of rust-lang#118182 - estebank:issue-118164, r=davidtwco Properly recover from trailing attr in body When encountering an attribute in a body, we try to recover from an attribute on an expression (as opposed to a statement). We need to properly clean up when the attribute is at the end of the body where a tail expression would be. Fix rust-lang#118164, fix rust-lang#118575.
snippet:
Version information
but still crashes with
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: