Closed
Description
Rust version: 1.40.0
Platform: Ubuntu 18.04
error: internal compiler error: src/librustc/dep_graph/graph.rs:680: DepNode Hir(btrs[5509]::metainfo[0]::torrent[0]::Torrent[0]::source[0]) should have been pre-allocated but wasn't.
Backtrace:
error: internal compiler error: src/librustc/dep_graph/graph.rs:680: DepNode Hir(btrs[5509]::metainfo[0]::torrent[0]::Torrent[0]::source[0]) should have been pre-allocated but wasn't.
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:931:9
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /cargo/registry/src/github.heygears.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: backtrace::backtrace::trace_unsynchronized
at /cargo/registry/src/github.heygears.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:77
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
at src/libstd/sys_common/backtrace.rs:61
4: core::fmt::write
at src/libcore/fmt/mod.rs:1028
5: std::io::Write::write_fmt
at src/libstd/io/mod.rs:1412
6: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:65
7: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:50
8: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:188
9: std::panicking::default_hook
at src/libstd/panicking.rs:205
10: rustc_driver::report_ice
11: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:468
12: std::panicking::begin_panic
13: rustc_errors::HandlerInner::bug
14: rustc_errors::Handler::bug
15: rustc::util::bug::opt_span_bug_fmt::{{closure}}
16: rustc::ty::context::tls::with_opt::{{closure}}
17: rustc::ty::context::tls::with_context_opt
18: rustc::ty::context::tls::with_opt
19: rustc::util::bug::opt_span_bug_fmt
20: rustc::util::bug::bug_fmt
21: rustc::dep_graph::graph::DepGraph::try_mark_previous_green
22: rustc::dep_graph::graph::DepGraph::try_mark_green
23: rustc::dep_graph::graph::DepGraph::try_mark_green_and_read
24: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
25: <rustc_typeck::outlives::implicit_infer::InferVisitor as rustc::hir::itemlikevisit::ItemLikeVisitor>::visit_item
26: rustc::hir::Crate::visit_all_item_likes
27: rustc_typeck::outlives::inferred_outlives_crate
28: rustc::dep_graph::graph::DepGraph::with_task_impl
29: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::force_query
30: rustc::ty::query::plumbing::force_from_dep_node
31: rustc::dep_graph::graph::DepGraph::try_mark_previous_green
32: rustc::dep_graph::graph::DepGraph::try_mark_previous_green
33: rustc::dep_graph::graph::DepGraph::try_mark_previous_green
34: rustc::dep_graph::graph::DepGraph::try_mark_green
35: rustc::dep_graph::graph::DepGraph::try_mark_green_and_read
36: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
37: <rustc_typeck::collect::CollectItemTypesVisitor as rustc::hir::intravisit::Visitor>::visit_item
38: rustc::hir::map::Map::visit_item_likes_in_module
39: rustc_typeck::collect::collect_mod_item_types
40: rustc::ty::query::__query_compute::collect_mod_item_types
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::collect_mod_item_types>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::ensure_query
45: rustc_typeck::check_crate::{{closure}}::{{closure}}
46: rustc::util::common::time
47: rustc_typeck::check_crate
48: rustc_interface::passes::analysis
49: rustc::ty::query::__query_compute::analysis
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
52: rustc_interface::passes::BoxedGlobalCtxt::access::{{closure}}
53: rustc_interface::passes::create_global_ctxt::{{closure}}
54: rustc_interface::passes::BoxedGlobalCtxt::enter
55: rustc_interface::interface::run_compiler_in_existing_thread_pool
56: std::thread::local::LocalKey<T>::with
57: scoped_tls::ScopedKey<T>::set
58: syntax::with_globals
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose 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
note: rustc 1.40.0 (73528e339 2019-12-16) 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
query stack during panic:
#0 [type_of] processing `metainfo::torrent::Torrent::source`
#1 [inferred_outlives_crate] computing the inferred outlives predicates for items in this crate
#2 [predicates_of] processing `data::fs::FileSystemStorage`
#3 [collect_mod_item_types] collecting item types in module `data::fs`
#4 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to previous error
Metadata
Metadata
Assignees
Labels
Area: Incremental compilationCategory: This is a bug.Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the compiler team, which will review and decide on the PR/issue.