Skip to content

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

Closed

Description

@dwrensha

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

  1. dwrensha commented on Apr 2, 2020

    @dwrensha
    ContributorAuthor

    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

  2. added
    C-bugCategory: This is a bug.
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
    on Apr 2, 2020
  3. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Apr 2, 2020
  4. self-assigned this
    on Apr 2, 2020
  5. Centril commented on Apr 3, 2020

    @Centril
    Contributor

    Fixed by #70725.

  6. added a commit that references this issue on Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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