Skip to content
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: encode_symbol: id not found #12920

Closed
alexcrichton opened this issue Mar 15, 2014 · 2 comments · Fixed by #17199
Closed

ICE: encode_symbol: id not found #12920

alexcrichton opened this issue Mar 15, 2014 · 2 comments · Fixed by #17199
Labels
A-diagnostics Area: Messages for errors, warnings, and lints 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

@alexcrichton
Copy link
Member

pub fn foo() { if 1 == 1 { return; } println!("test"); }
$ rustc --crate-type=dylib ./foo.rs
error: internal compiler error: encode_symbol: id not found 15
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_LOG=std::rt::backtrace` for a backtrace
task 'rustc' failed at '~Any', /Users/alex/code/rust-opt/src/libsyntax/diagnostic.rs:123
@alexcrichton
Copy link
Member Author

Also

pub fn foo() { fail!(); println!("{}", 1); }

@Sawyer47
Copy link
Contributor

Sawyer47 commented Sep 2, 2014

No longer causes an ICE. Results in resonable error message instead.

error: main function not found
error: aborting due to previous error

bors added a commit that referenced this issue Sep 15, 2014
…hton

Closes #7813.
Closes #10902.
Closes #11374.
Closes #11714.
Closes #12920.
Closes #13202.
Closes #13624.
Closes #14039.
Closes #15730.
Closes #15783.
lnicola pushed a commit to lnicola/rust that referenced this issue Aug 2, 2022
…schievink

feat: Publish extension for 32-bit ARM systems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints 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) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants