Skip to content

Misreported option::get failure #2018

@jdm

Description

@jdm
fn main() {
    let x = 5;
    #error("%?", x);
}

built with -g currently triggers an option::get failure in debuginfo::create_function. However, the only output is this:

godot:src jdm$ RUST_LOG=rustc=0,::rt::backtrace rust/build/x86_64-apple-darwin/stage2/bin/rustc -g rust_dbg2.rs 
rust: upcall fail 'option none', ../src/rustc/rustc.rc:1
error: internal compiler error unexpected failure
note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: upcall fail 'explicit failure', ../src/rustc/driver/rustc.rs:180
rust: domain main @0x10302d200 root task failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions