-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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: 'No def'n found for syntax::ast::DefId{krate: 0u32, node: 4u32} in tcx.tcache', #17001
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Smaller testcase: mod Parser {
enum ParseResult<T> {
Ok(T),
}
struct Parser<T> {
parse: Box<ParseResult<T>>
}
}
fn main(){
let p = Parser{ parse: box Parser::Ok("world") };
} |
Updated smaller testcase that ICEs post-namespaced-enums:
|
Doesn't even need to be that complicated:
|
The ICE is caused by using a module as a struct name: mod foo {}
fn main() {
let p = foo { x: () };
} |
Yep. Just got hit by exactly the same thing trying to figure out the module system. |
Still an issue. |
It works on nightly now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I get this output:
when I try and compile this code: http://pastie.org/9528361
The text was updated successfully, but these errors were encountered: