Skip to content

ICE: encode_symbol: id not found  #12920

Closed
@alexcrichton

Description

@alexcrichton
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions