Skip to content

ICE with nightly in LvalyeTy<'tcx>::protection_ty #31504

Closed
@kvark

Description

@kvark

rustc 1.8.0-nightly (9d8e3a0 2016-02-04)

It works fine with rust-beta (1.7) and rust-stable (1.6).

Repro steps:

  1. git clone http://github.com/gfx-rs/gfx
  2. build with rust nightly (cargo test), assuming you have glfw3 and X libraries installed. I'll try to narrow down the problem to a simpler case.

Backtrace:

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
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:330
stack backtrace:
   1:     0x7f357580d240 - sys::backtrace::tracing::imp::write::h25e8a89f9cb373ffYpu
   2:     0x7f3575814e3b - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.43046
   3:     0x7f3575814991 - panicking::default_handler::h2ce1c6a1dea5f1feqOy
   4:     0x7f35757ddb7c - sys_common::unwind::begin_unwind_inner::h47b5a8e37506c94ewit
   5:     0x7f35757de608 - sys_common::unwind::begin_unwind_fmt::ha90625204f89d411Cht
   6:     0x7f357580ae81 - rust_begin_unwind
   7:     0x7f357585b85f - panicking::panic_fmt::h1e48e4114ce9cc0cqYL
   8:     0x7f357585c358 - panicking::panic::h5b116cb444de10f6XWL
   9:     0x7f3572c65dbc - mir::tcx::LvalueTy<'tcx>::projection_ty::h5714fccab20a238fMPo
  10:     0x7f3572c66280 - mir::tcx::Mir<'tcx>::lvalue_ty::ha839b7f9519d497ajXo
  11:     0x7f3573ddd64f - trans::collector::MirNeighborCollector<'a, 'tcx>.MirVisitor<'tcx>::visit_lvalue::h84f7d7046786baccdNR
  12:     0x7f3573dd9769 - trans::collector::collect_items_rec::hc8cd3c9f4c3f007fSxR
  13:     0x7f3573dd9a58 - trans::collector::collect_items_rec::hc8cd3c9f4c3f007fSxR
  14:     0x7f3573dd9a58 - trans::collector::collect_items_rec::hc8cd3c9f4c3f007fSxR
  15:     0x7f3573d0b97d - trans::base::collect_translation_items::_$u7b$$u7b$closure$u7d$$u7d$::closure.61644
  16:     0x7f3573cf7ad7 - trans::base::trans_crate::h0435b9d851cf7d4f62k
  17:     0x7f3575d48bd4 - driver::phase_4_translate_to_llvm::hdd61956c6e2890eeG0a
  18:     0x7f3575d47433 - driver::compile_input::_$u7b$$u7b$closure$u7d$$u7d$::closure.28786
  19:     0x7f3575d42530 - driver::phase_3_run_analysis_passes::_$u7b$$u7b$closure$u7d$$u7d$::closure.27816
  20:     0x7f3575d21b2d - middle::ty::context::ctxt<'tcx>::create_and_enter::h8165751750365025443
  21:     0x7f3575d1c710 - driver::phase_3_run_analysis_passes::h8165887220225805103
  22:     0x7f3575ceef7c - driver::compile_input::h1d4ebbbb69cdadccAca
  23:     0x7f3575ce068e - run_compiler::h0ff710740da72a00fGc
  24:     0x7f3575cdd9b1 - sys_common::unwind::try::try_fn::h17883797362545364498
  25:     0x7f357580ae0b - __rust_try
  26:     0x7f35758029ed - sys_common::unwind::inner_try::h4dda564fff486709yft
  27:     0x7f3575cde200 - boxed::F.FnBox<A>::call_box::h2946617711430984355
  28:     0x7f35758133f0 - sys::thread::Thread::new::thread_start::hc9003707bc709661aLx
  29:     0x7f356dfaf6a9 - start_thread
  30:     0x7f357548aeec - clone
  31:                0x0 - <unknown>

Metadata

Metadata

Assignees

Labels

A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlI-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions