Skip to content

ICE: -Z unstable-options without extra argument #21715

Closed
@klutzy

Description

@klutzy
$ touch empty.rs && RUST_BACKTRACE=1 rustc empty.rs -Z unstable-options

error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'No option 'pretty' defined', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libgetopts/lib.rs:288

stack backtrace:
   1:     0x7f72e50e2130 - sys::backtrace::write::h34a8f70a4ca4ec0fy8t
   2:     0x7f72e5105860 - failure::on_fail::h88bfd016d2822c140jB
   3:     0x7f72e5071b20 - rt::unwind::begin_unwind_inner::haf8e45ff7ce022991YA
   4:     0x7f72e5072650 - rt::unwind::begin_unwind_fmt::h182b016b507efcdexXA
   5:     0x7f72dfa51dd0 - Matches::opt_vals::h0825e97fe157f173F5a
   6:     0x7f72dfa53200 - Matches::opt_default::h18c31216d9511db93ab
   7:     0x7f72e5711f60 - run_compiler::hb21c8df76397117cR8b
   8:     0x7f72e57106d0 - thunk::F.Invoke<A, R>::invoke::h13774937598519192257
   9:     0x7f72e570f630 - rt::unwind::try::try_fn::h9167027889745043865
  10:     0x7f72e5170bc0 - rust_try_inner
  11:     0x7f72e5170bb0 - rust_try
  12:     0x7f72e570f8e0 - thunk::F.Invoke<A, R>::invoke::h9295767165675113612
  13:     0x7f72e50f2030 - sys::thread::thread_start::h3f192e5a493c4515E3w
  14:     0x7f72df358fe0 - start_thread
  15:     0x7f72e4cfbc99 - __clone
  16:                0x0 - <unknown>

Metadata

Metadata

Assignees

No one assigned

    Labels

    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