-
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: attempted .def_id() on invalid res: Err
#120992
Comments
#![feature(unnamed_fields)]
#[repr(C)]
struct D {
_: Foo,
_: union {
}
}
pub fn main() {} |
Lol, what's up with all the unnecessary whitespace in your treereduce reproducers? Could you teach treereduce to reduce that? :P |
Also I would probably place the MCVE from #120992 (comment) into the issue description and the original reproducer inside a |
auto-reduced (treereduce-rust): struct TypedArenaChunk {
next: Optionlet _: usize = ()
}
original: struct TypedArenaChunk {
next: Optionlet _: usize = ()
//~^ ERROR mismatched types
//~| ERROR expected `;`String>>
//~^ ERROR unmatched angle bracket
}
fn main() {} Version information
Command: Program output
|
@fmease im actually running rustfmt after reducing before generating the report, but treereduce sometimes slighlty misreduces the code (e.g. I can see if I can add some kind of self-coded cleanup after rustfmt even. |
Right now the report is generated fully automatic, the "reduced" mvce is never put into details, the |
All of the examples in here no longer ICE so I'm pretty sure #121198 got this too |
auto-reduced (treereduce-rust):
original code
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: