Skip to content

thread 'rustc' panicked at 'called Result::unwrap() on an Err value: SourceNotAvailable #70724

Closed
@dwrensha

Description

I'm seeing an internal compiler error on the following input (found by fuzz-rustc):

fn a() -> i32 {3}

pub fn main() {
    assert_eq!(a, 0);
}
$ rustc main.rs
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: SourceNotAvailable { filename: Real("/rustc/76b11980ad416c3ad6143504c2277757ecacf9b5/src/libcore/macros/mod.rs") }', src/librustc_typeck/check/op.rs:524:41
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.44.0-nightly (76b11980a 2020-04-01) running on x86_64-unknown-linux-gnu

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions