Skip to content

Instantly share code, notes, and snippets.

@XavilPergis
Created January 2, 2019 16:27
Show Gist options
  • Save XavilPergis/102774c6c542403db10a351ff013f356 to your computer and use it in GitHub Desktop.
Save XavilPergis/102774c6c542403db10a351ff013f356 to your computer and use it in GitHub Desktop.
ICE: rustc 1.33.0-nightly (9eac38634 2018-12-31) running on x86_64-unknown-linux-gnu
Compiling class v0.1.0 (/home/xavil/code/rvm/class)
error: internal compiler error: src/librustc/dep_graph/graph.rs:634: try_mark_green() - Forcing the DepNode should have set its color
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:590:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:215
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:482
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::dep_graph::graph::DepGraph::try_mark_green
15: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_mark_green_and_read
16: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
17: rustc::ty::AdtDef::sized_constraint
18: rustc::ty::AdtDef::sized_constraint_for_ty
19: <core::iter::FlatMap<I, U, F> as core::iter::iterator::Iterator>::next
20: <smallvec::SmallVec<A> as core::iter::traits::FromIterator<<A as smallvec::Array>::Item>>::from_iter
21: <T as rustc::ty::context::InternIteratorElement<T, R>>::intern_with
22: rustc::ty::adt_sized_constraint
23: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::adt_sized_constraint<'tcx>>::compute
24: rustc::dep_graph::graph::DepGraph::with_task_impl
25: <rustc::ty::query::plumbing::JobOwner<'a, 'tcx, Q>>::start
26: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job
27: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query
28: rustc::ty::query::plumbing::force_from_dep_node
29: rustc::dep_graph::graph::DepGraph::try_mark_green
30: rustc::dep_graph::graph::DepGraph::try_mark_green
31: rustc::dep_graph::graph::DepGraph::try_mark_green
32: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_mark_green_and_read
33: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
34: rustc::traits::query::evaluate_obligation::<impl rustc::infer::InferCtxt<'cx, 'gcx, 'tcx>>::evaluate_obligation
35: rustc::traits::query::evaluate_obligation::<impl rustc::infer::InferCtxt<'cx, 'gcx, 'tcx>>::evaluate_obligation_no_overflow
36: <rustc_data_structures::obligation_forest::ObligationForest<O>>::process_obligations
37: <rustc::traits::fulfill::FulfillmentContext<'tcx> as rustc::traits::engine::TraitEngine<'tcx>>::select_where_possible
38: <rustc::traits::fulfill::FulfillmentContext<'tcx> as rustc::traits::engine::TraitEngine<'tcx>>::select_all_or_error
39: rustc_typeck::check::FnCtxt::select_all_obligations_or_error
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::wfcheck::check_item_well_formed
42: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::check_item_well_formed<'tcx>>::compute
43: rustc::dep_graph::graph::DepGraph::with_task_impl
44: <rustc::ty::query::plumbing::JobOwner<'a, 'tcx, Q>>::start
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job
46: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
48: <rustc_typeck::check::wfcheck::CheckTypeWellFormedVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'v>>::visit_item
49: rustc::hir::Crate::visit_all_item_likes
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: <scoped_tls::ScopedKey<T>>::set
59: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
60: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
61: <F as alloc::boxed::FnBox<A>>::call_box
62: std::sys::unix::thread::Thread::new::thread_start
at /rustc/9eac386342c601b14311b435f2b6d314fc817bb5/src/liballoc/boxed.rs:734
at src/libstd/sys_common/thread.rs:14
at src/libstd/sys/unix/thread.rs:81
63: start_thread
64: __clone
query stack during panic:
#0 [adt_sized_constraint] processing `signature::TypeSignature`
#1 [check_item_well_formed] processing `signature::ObjectType`
end of query stack
error: aborting due to previous error
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
note: rustc 1.33.0-nightly (9eac38634 2018-12-31) running on x86_64-unknown-linux-gnu
note: compiler flags: -C debuginfo=2 -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
error: Could not compile `class`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment