Skip to content

ICE: node_id_to_type: no type for node unknown node (id=N) #4875

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

Closed
alexcrichton opened this issue Feb 10, 2013 · 4 comments
Closed

ICE: node_id_to_type: no type for node unknown node (id=N) #4875

alexcrichton opened this issue Feb 10, 2013 · 4 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone

Comments

@alexcrichton
Copy link
Member

For this program:

pub struct Foo<T> {
  data: T,
}

fn foo<T>(Foo{data}: Foo<T>) {
}

fn main() {
}

You receive this output:

$ rustc foo.rs                                           
error: internal compiler error: node_id_to_type: no type for node `unknown node (id=11)`
@nikomatsakis
Copy link
Contributor

I am... surprised this even parses.

@alexcrichton
Copy link
Member Author

Should it not be possible to have destructing assignment for arguments?

@nikomatsakis
Copy link
Contributor

Oh, you are correct. I didn't realize that was a pattern, but of course it is.

@alexcrichton
Copy link
Member Author

This was fixed in #5039

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants