Skip to content

gfx_device_gl internal compiler error #32324

@Johnson-A

Description

@Johnson-A

Using the nightly rustc 1.9.0-nightly (6e0f2f2 2016-03-16), the crate gfx_device_gl fails to compile

Build failed, waiting for other jobs to finish...
       error Could not compile `gfx_device_gl`.

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
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:330
stack backtrace:
   1:     0x7f5effd14240 - sys::backtrace::tracing::imp::write::h3bbb320d569781f92cv
   2:     0x7f5effd1e43f - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.44520
   3:     0x7f5effd1dfb3 - panicking::default_handler::hf1209fec3f963ae7H0z
   4:     0x7f5effce642c - sys_common::unwind::begin_unwind_inner::h2ff9ae045f111c6dg2t
   5:     0x7f5effce7e18 - sys_common::unwind::begin_unwind_fmt::hf803f209d02109a7m1t
   6:     0x7f5effd11b41 - rust_begin_unwind
   7:     0x7f5effd67dcf - panicking::panic_fmt::hd76b622b6f659cc5FRL
   8:     0x7f5effd688c8 - panicking::panic::h129376b8b435084ecQL
   9:     0x7f5efd0ca0ef - middle::traits::specialize::specialization_graph::Graph::parent::hb9009024a9897d1dGj0
  10:     0x7f5efd0ca417 - middle::traits::specialize::specialization_graph::Ancestors<'a, 'tcx>.Iterator::next::hd3a6140c01e72556Bp0
  11:     0x7f5efd0ca625 - iter::FlatMap<I, U, F>.Iterator::next::h9753486813069850975
  12:     0x7f5efd09f39e - middle::traits::project::assoc_ty_def::h2d4f59bcecc64af2TMV
  13:     0x7f5efd09aed1 - middle::traits::project::opt_normalize_projection_type::hac249e56767be130BSU
  14:     0x7f5efd087356 - middle::traits::project::normalize_projection_type::h5c927accb52af237qRU
  15:     0x7f5efcfc46fb - middle::traits::project::AssociatedTypeNormalizer<'a, 'b, 'tcx>.TypeFolder<'tcx>::fold_ty::h023fb72f91feb19c7OU
  16:     0x7f5efd0713a4 - middle::ty::fold::TypeFolder::fold_substs::h10129062906695728485
  17:     0x7f5efd070f54 - middle::ty::structural_impls::ty..Predicate<'tcx>.TypeFoldable<'tcx>::super_fold_with::h4768509243608403928
  18:     0x7f5efd0c33d3 - middle::traits::project::AssociatedTypeNormalizer<'a, 'b, 'tcx>::fold::h10624123112796617822
  19:     0x7f5efd0c2ff3 - middle::traits::select::SelectionContext<'cx, 'tcx>::impl_or_trait_obligations::_$u7b$$u7b$closure$u7d$$u7d$::closure.94592
  20:     0x7f5efd0c209e - iter::FlatMap<I, U, F>.Iterator::next::h5918725067989719148
  21:     0x7f5efd0c1193 - vec::Vec<T>.FromIterator<T>::from_iter::h2085870500798478170
  22:     0x7f5efd0bbce6 - middle::traits::select::SelectionContext<'cx, 'tcx>::impl_or_trait_obligations::hcef76fba84501e368YZ
  23:     0x7f5efd0bc605 - middle::traits::select::SelectionContext<'cx, 'tcx>::vtable_impl::hf052d7fa9a358527TjZ
  24:     0x7f5efd0bc285 - middle::infer::InferCtxt<'a, 'tcx>::commit_if_ok::h15771757354457876063
  25:     0x7f5efd0aae91 - middle::traits::select::SelectionContext<'cx, 'tcx>::confirm_candidate::h7f158130408656ecyRY
  26:     0x7f5efd0b09ae - middle::traits::select::SelectionContext<'cx, 'tcx>::evaluate_candidate::_$u7b$$u7b$closure$u7d$$u7d$::closure.94169
  27:     0x7f5efd0b060e - middle::traits::select::SelectionContext<'cx, 'tcx>::evaluate_stack::h863c364f8a43eda6ScX
  28:     0x7f5efd0af87b - middle::traits::select::SelectionContext<'cx, 'tcx>::evaluate_predicate_recursively::h68d69a192e1c5bfd53W
  29:     0x7f5efcfbf338 - middle::traits::type_known_to_meet_builtin_bound::he3b7e0685e8c00affg2
  30:     0x7f5efd0f3681 - middle::ty::util::ty..TyS<'tcx>::impls_bound::h72a76c819f3e2092Ww8
  31:     0x7f5efcfbf71f - middle::ty::util::ty..TyS<'tcx>::moves_by_default::he8454c3fc9f2398fdz8
  32:     0x7f5efcf16a8c - middle::infer::InferCtxt<'a, 'tcx>::type_moves_by_default::h328546648f89d696u3D
  33:     0x7f5efd0f0b04 - middle::ty::util::ParameterEnvironment<'a, 'tcx>::can_type_implement_copy::h3770fa101b94d348O57
  34:     0x7f5eff10ba52 - coherence::CoherenceChecker<'a, 'tcx>::check_implementations_of_copy::_$u7b$$u7b$closure$u7d$$u7d$::closure.47302
  35:     0x7f5eff00c83c - coherence::check_coherence::h4b13e71c9c2e25ffqeB
  36:     0x7f5eff0056e8 - check_crate::hf1eeac8d4e98098a6KC
  37:     0x7f5f0024366c - driver::phase_3_run_analysis_passes::_$u7b$$u7b$closure$u7d$$u7d$::closure.30392
  38:     0x7f5f00241c64 - middle::ty::context::TyCtxt<'tcx>::create_and_enter::h9147142471428683876
  39:     0x7f5f0023e842 - driver::phase_3_run_analysis_passes::h401012091542974636
  40:     0x7f5f0021103f - driver::compile_input::h5061645098a52196Pca
  41:     0x7f5f001fe90c - run_compiler::hf1a385ebc338137cJPc
  42:     0x7f5f001fbf91 - sys_common::unwind::try::try_fn::h13370330027690439195
  43:     0x7f5effd11acb - __rust_try
  44:     0x7f5effd11a5d - sys_common::unwind::inner_try::h87a6865a03ff0831iZt
  45:     0x7f5f001fc7da - boxed::F.FnBox<A>::call_box::h11886714385289713998
  46:     0x7f5effd1c549 - sys::thread::Thread::new::thread_start::haca995caeb3b74699Xy
  47:     0x7f5ef83f8669 - start_thread
  48:     0x7f5eff99001c - clone
  49:                0x0 - <unknown>

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-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