{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/32324","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/32324/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/32324/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/32324/events","html_url":"https://github.com/rust-lang/rust/issues/32324","id":141735779,"number":32324,"title":"gfx_device_gl internal compiler error","user":{"login":"Johnson-A","id":12973787,"avatar_url":"https://avatars.githubusercontent.com/u/12973787?v=3","gravatar_id":"","url":"https://api.github.com/users/Johnson-A","html_url":"https://github.com/Johnson-A","followers_url":"https://api.github.com/users/Johnson-A/followers","following_url":"https://api.github.com/users/Johnson-A/following{/other_user}","gists_url":"https://api.github.com/users/Johnson-A/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnson-A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnson-A/subscriptions","organizations_url":"https://api.github.com/users/Johnson-A/orgs","repos_url":"https://api.github.com/users/Johnson-A/repos","events_url":"https://api.github.com/users/Johnson-A/events{/privacy}","received_events_url":"https://api.github.com/users/Johnson-A/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-ICE","name":"I-ICE","color":"e10c02"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-nominated","name":"I-nominated","color":"e10c02"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/regression-from-stable-to-nightly","name":"regression-from-stable-to-nightly","color":"FF309F"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/T-compiler","name":"T-compiler","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-17T23:40:18Z","updated_at":"2016-03-18T06:13:56Z","closed_at":null,"body":"Using the nightly rustc 1.9.0-nightly (6e0f2f2f0 2016-03-16), the crate `gfx_device_gl` fails to compile\r\n\r\n```\r\nBuild failed, waiting for other jobs to finish...\r\n       error Could not compile `gfx_device_gl`.\r\n\r\nerror: internal compiler error: unexpected panic\r\nnote: the compiler unexpectedly panicked. this is a bug.\r\nnote: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports\r\nthread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:330\r\nstack backtrace:\r\n   1:     0x7f5effd14240 - sys::backtrace::tracing::imp::write::h3bbb320d569781f92cv\r\n   2:     0x7f5effd1e43f - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.44520\r\n   3:     0x7f5effd1dfb3 - panicking::default_handler::hf1209fec3f963ae7H0z\r\n   4:     0x7f5effce642c - sys_common::unwind::begin_unwind_inner::h2ff9ae045f111c6dg2t\r\n   5:     0x7f5effce7e18 - sys_common::unwind::begin_unwind_fmt::hf803f209d02109a7m1t\r\n   6:     0x7f5effd11b41 - rust_begin_unwind\r\n   7:     0x7f5effd67dcf - panicking::panic_fmt::hd76b622b6f659cc5FRL\r\n   8:     0x7f5effd688c8 - panicking::panic::h129376b8b435084ecQL\r\n   9:     0x7f5efd0ca0ef - middle::traits::specialize::specialization_graph::Graph::parent::hb9009024a9897d1dGj0\r\n  10:     0x7f5efd0ca417 - middle::traits::specialize::specialization_graph::Ancestors<'a, 'tcx>.Iterator::next::hd3a6140c01e72556Bp0\r\n  11:     0x7f5efd0ca625 - iter::FlatMap<I, U, F>.Iterator::next::h9753486813069850975\r\n  12:     0x7f5efd09f39e - middle::traits::project::assoc_ty_def::h2d4f59bcecc64af2TMV\r\n  13:     0x7f5efd09aed1 - middle::traits::project::opt_normalize_projection_type::hac249e56767be130BSU\r\n  14:     0x7f5efd087356 - middle::traits::project::normalize_projection_type::h5c927accb52af237qRU\r\n  15:     0x7f5efcfc46fb - middle::traits::project::AssociatedTypeNormalizer<'a, 'b, 'tcx>.TypeFolder<'tcx>::fold_ty::h023fb72f91feb19c7OU\r\n  16:     0x7f5efd0713a4 - middle::ty::fold::TypeFolder::fold_substs::h10129062906695728485\r\n  17:     0x7f5efd070f54 - middle::ty::structural_impls::ty..Predicate<'tcx>.TypeFoldable<'tcx>::super_fold_with::h4768509243608403928\r\n  18:     0x7f5efd0c33d3 - middle::traits::project::AssociatedTypeNormalizer<'a, 'b, 'tcx>::fold::h10624123112796617822\r\n  19:     0x7f5efd0c2ff3 - middle::traits::select::SelectionContext<'cx, 'tcx>::impl_or_trait_obligations::_$u7b$$u7b$closure$u7d$$u7d$::closure.94592\r\n  20:     0x7f5efd0c209e - iter::FlatMap<I, U, F>.Iterator::next::h5918725067989719148\r\n  21:     0x7f5efd0c1193 - vec::Vec<T>.FromIterator<T>::from_iter::h2085870500798478170\r\n  22:     0x7f5efd0bbce6 - middle::traits::select::SelectionContext<'cx, 'tcx>::impl_or_trait_obligations::hcef76fba84501e368YZ\r\n  23:     0x7f5efd0bc605 - middle::traits::select::SelectionContext<'cx, 'tcx>::vtable_impl::hf052d7fa9a358527TjZ\r\n  24:     0x7f5efd0bc285 - middle::infer::InferCtxt<'a, 'tcx>::commit_if_ok::h15771757354457876063\r\n  25:     0x7f5efd0aae91 - middle::traits::select::SelectionContext<'cx, 'tcx>::confirm_candidate::h7f158130408656ecyRY\r\n  26:     0x7f5efd0b09ae - middle::traits::select::SelectionContext<'cx, 'tcx>::evaluate_candidate::_$u7b$$u7b$closure$u7d$$u7d$::closure.94169\r\n  27:     0x7f5efd0b060e - middle::traits::select::SelectionContext<'cx, 'tcx>::evaluate_stack::h863c364f8a43eda6ScX\r\n  28:     0x7f5efd0af87b - middle::traits::select::SelectionContext<'cx, 'tcx>::evaluate_predicate_recursively::h68d69a192e1c5bfd53W\r\n  29:     0x7f5efcfbf338 - middle::traits::type_known_to_meet_builtin_bound::he3b7e0685e8c00affg2\r\n  30:     0x7f5efd0f3681 - middle::ty::util::ty..TyS<'tcx>::impls_bound::h72a76c819f3e2092Ww8\r\n  31:     0x7f5efcfbf71f - middle::ty::util::ty..TyS<'tcx>::moves_by_default::he8454c3fc9f2398fdz8\r\n  32:     0x7f5efcf16a8c - middle::infer::InferCtxt<'a, 'tcx>::type_moves_by_default::h328546648f89d696u3D\r\n  33:     0x7f5efd0f0b04 - middle::ty::util::ParameterEnvironment<'a, 'tcx>::can_type_implement_copy::h3770fa101b94d348O57\r\n  34:     0x7f5eff10ba52 - coherence::CoherenceChecker<'a, 'tcx>::check_implementations_of_copy::_$u7b$$u7b$closure$u7d$$u7d$::closure.47302\r\n  35:     0x7f5eff00c83c - coherence::check_coherence::h4b13e71c9c2e25ffqeB\r\n  36:     0x7f5eff0056e8 - check_crate::hf1eeac8d4e98098a6KC\r\n  37:     0x7f5f0024366c - driver::phase_3_run_analysis_passes::_$u7b$$u7b$closure$u7d$$u7d$::closure.30392\r\n  38:     0x7f5f00241c64 - middle::ty::context::TyCtxt<'tcx>::create_and_enter::h9147142471428683876\r\n  39:     0x7f5f0023e842 - driver::phase_3_run_analysis_passes::h401012091542974636\r\n  40:     0x7f5f0021103f - driver::compile_input::h5061645098a52196Pca\r\n  41:     0x7f5f001fe90c - run_compiler::hf1a385ebc338137cJPc\r\n  42:     0x7f5f001fbf91 - sys_common::unwind::try::try_fn::h13370330027690439195\r\n  43:     0x7f5effd11acb - __rust_try\r\n  44:     0x7f5effd11a5d - sys_common::unwind::inner_try::h87a6865a03ff0831iZt\r\n  45:     0x7f5f001fc7da - boxed::F.FnBox<A>::call_box::h11886714385289713998\r\n  46:     0x7f5effd1c549 - sys::thread::Thread::new::thread_start::haca995caeb3b74699Xy\r\n  47:     0x7f5ef83f8669 - start_thread\r\n  48:     0x7f5eff99001c - clone\r\n  49:                0x0 - <unknown>\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/198222681","html_url":"https://github.com/rust-lang/rust/issues/32324#issuecomment-198222681","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/32324","id":198222681,"user":{"login":"sanxiyn","id":45249,"avatar_url":"https://avatars.githubusercontent.com/u/45249?v=3","gravatar_id":"","url":"https://api.github.com/users/sanxiyn","html_url":"https://github.com/sanxiyn","followers_url":"https://api.github.com/users/sanxiyn/followers","following_url":"https://api.github.com/users/sanxiyn/following{/other_user}","gists_url":"https://api.github.com/users/sanxiyn/gists{/gist_id}","starred_url":"https://api.github.com/users/sanxiyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanxiyn/subscriptions","organizations_url":"https://api.github.com/users/sanxiyn/orgs","repos_url":"https://api.github.com/users/sanxiyn/repos","events_url":"https://api.github.com/users/sanxiyn/events{/privacy}","received_events_url":"https://api.github.com/users/sanxiyn/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T06:13:56Z","updated_at":"2016-03-18T06:13:56Z","body":"Single file reduction:\r\n\r\n```rust\r\ntrait Resources {\r\n    type Buffer;\r\n}\r\n\r\n#[derive(Copy)]\r\nstruct ConstantBufferSet<R: Resources>(\r\n    pub R::Buffer\r\n);\r\n\r\nenum It {}\r\nimpl Resources for It {}\r\n\r\n#[derive(Copy)]\r\nenum Command {\r\n    BindConstantBuffers(ConstantBufferSet<It>)\r\n}\r\n```"}}