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

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

Closed
dwrensha opened this issue Apr 2, 2020 · 2 comments · Fixed by #70725
Closed
Assignees
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-high High priority T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@dwrensha
Copy link
Contributor

dwrensha commented Apr 2, 2020

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
@dwrensha
Copy link
Contributor Author

dwrensha commented Apr 2, 2020

Report from cargo-bisect-rustc:

searched nightlies: from nightly-2020-03-09 to nightly-2020-04-02
regressed nightly: nightly-2020-03-11
searched commits: from 3dbade6 to 1581278
regressed commit: 1581278

@csmoe csmoe added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) labels Apr 2, 2020
@Centril Centril added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Apr 2, 2020
@Centril Centril self-assigned this Apr 2, 2020
@Centril Centril added the P-high High priority label Apr 3, 2020
@Centril
Copy link
Contributor

Centril commented Apr 3, 2020

Fixed by #70725.

@bors bors closed this as completed in b91c376 Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-high High priority T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants