Skip to content

ICE: "fully private item in the table" when compiling bacon v2.2.5 #104539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
saethlin opened this issue Nov 17, 2022 · 5 comments · Fixed by #104602
Closed

ICE: "fully private item in the table" when compiling bacon v2.2.5 #104539

saethlin opened this issue Nov 17, 2022 · 5 comments · Fixed by #104602
Assignees
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@saethlin
Copy link
Member

error: internal compiler error: compiler/rustc_middle/src/middle/privacy.rs:203:17: fully private item in the table DefId(0:881 ~ bacon[0c20]::{use#3}): Restricted(DefId(0:0 ~ bacon[0c20]))
  --> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-2.2.5/src/main.rs:38:5
   |
38 |     app::*,
   |     ^^^

I can't reproduce this on nightly, but I can reproduce it on a toolchain I keep up to date with master that is built with debug assertions:

rustc --version --verbose:

cargo 1.67.0-nightly (16b097879 2022-11-14)
release: 1.67.0-nightly
commit-hash: 16b097879b6f117c8ae698aab054c87f26ff325e
commit-date: 2022-11-14
host: x86_64-unknown-linux-gnu
libgit2: 1.5.0 (sys:0.15.0 vendored)
libcurl: 7.86.0-DEV (sys:0.4.59+curl-7.86.0 vendored ssl:OpenSSL/1.1.1q)
os: Arch Linux [64-bit]
Backtrace

error: internal compiler error: compiler/rustc_middle/src/middle/privacy.rs:203:17: fully private item in the table DefId(0:881 ~ bacon[0c20]::{use#3}): Restricted(DefId(0:0 ~ bacon[0c20]))
  --> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-2.2.5/src/main.rs:38:5
   |
38 |     app::*,
   |     ^^^

thread 'rustc' panicked at 'Box<dyn Any>', /home/ben/rust-master/compiler/rustc_errors/src/lib.rs:967:33
stack backtrace:
   0:     0x7f2a7aef1c7a - std::backtrace_rs::backtrace::libunwind::trace::h2ba7924f373abcbe
                               at /home/ben/rust-master/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f2a7aef1c7a - std::backtrace_rs::backtrace::trace_unsynchronized::h5a4fdc5ca15c5a11
                               at /home/ben/rust-master/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f2a7aef1c7a - std::sys_common::backtrace::_print_fmt::h34d240f86b681b56
                               at /home/ben/rust-master/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f2a7aef1c7a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hff0170f2c82d7337
                               at /home/ben/rust-master/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f2a7af6f4e8 - core::fmt::write::h1efe05f8990e10dd
                               at /home/ben/rust-master/library/core/src/fmt/mod.rs:1208:17
   5:     0x7f2a7aec1c41 - std::io::Write::write_fmt::h09b98dcf13d06d7e
                               at /home/ben/rust-master/library/std/src/io/mod.rs:1682:15
   6:     0x7f2a7aef1a75 - std::sys_common::backtrace::_print::hd796cba033e68e9f
                               at /home/ben/rust-master/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f2a7aef1a75 - std::sys_common::backtrace::print::h372132b3c3624c25
                               at /home/ben/rust-master/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f2a7aece9b7 - std::panicking::default_hook::{{closure}}::h25ec0b66e0c6b3e1
                               at /home/ben/rust-master/library/std/src/panicking.rs:267:22
   9:     0x7f2a7aece750 - std::panicking::default_hook::h57d3b2570aeea246
                               at /home/ben/rust-master/library/std/src/panicking.rs:286:9
  10:     0x7f2a7baac262 - <alloc[19a8b8a34660badf]::boxed::Box<dyn for<'a, 'b> core[54e86a843f8c5207]::ops::function::Fn<(&'a core[54e86a843f8c5207]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[54e86a843f8c5207]::marker::Sync + core[54e86a843f8c5207]::marker::Send> as core[54e86a843f8c5207]::ops::function::Fn<(&core[54e86a843f8c5207]::panic::panic_info::PanicInfo,)>>::call
                               at /home/ben/rust-master/library/alloc/src/boxed.rs:2024:9
  11:     0x7f2a7baac262 - rustc_driver[dc1df7a82508bf95]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_driver/src/lib.rs:1207:13
  12:     0x7f2a7aecf3a2 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::he864250e2a0af0c3
                               at /home/ben/rust-master/library/alloc/src/boxed.rs:2024:9
  13:     0x7f2a7aecf3a2 - std::panicking::rust_panic_with_hook::h57f8ea81dc24fd24
                               at /home/ben/rust-master/library/std/src/panicking.rs:692:13
  14:     0x7f2a7ecbde73 - std[b60d3abfffc60fec]::panicking::begin_panic::<rustc_errors[95618b4e8d7d36aa]::ExplicitBug>::{closure#0}
                               at /home/ben/rust-master/library/std/src/panicking.rs:608:9
  15:     0x7f2a7ecb6146 - std[b60d3abfffc60fec]::sys_common::backtrace::__rust_end_short_backtrace::<std[b60d3abfffc60fec]::panicking::begin_panic<rustc_errors[95618b4e8d7d36aa]::ExplicitBug>::{closure#0}, !>
                               at /home/ben/rust-master/library/std/src/sys_common/backtrace.rs:137:18
  16:     0x7f2a7ba4b146 - std[b60d3abfffc60fec]::panicking::begin_panic::<rustc_errors[95618b4e8d7d36aa]::ExplicitBug>
                               at /home/ben/rust-master/library/std/src/panicking.rs:607:12
  17:     0x7f2a7ecafc36 - std[b60d3abfffc60fec]::panic::panic_any::<rustc_errors[95618b4e8d7d36aa]::ExplicitBug>
                               at /home/ben/rust-master/library/std/src/panic.rs:61:5
  18:     0x7f2a7ecab661 - <rustc_errors[95618b4e8d7d36aa]::HandlerInner>::span_bug::<rustc_span[788ac5854ab08b5c]::span_encoding::Span, &alloc[19a8b8a34660badf]::string::String>
                               at /home/ben/rust-master/compiler/rustc_errors/src/lib.rs:1493:9
  19:     0x7f2a7ecab407 - <rustc_errors[95618b4e8d7d36aa]::Handler>::span_bug::<rustc_span[788ac5854ab08b5c]::span_encoding::Span, &alloc[19a8b8a34660badf]::string::String>
                               at /home/ben/rust-master/compiler/rustc_errors/src/lib.rs:967:9
  20:     0x7f2a7ee6bae4 - rustc_middle[96fa0ccccea9bd32]::util::bug::opt_span_bug_fmt::<rustc_span[788ac5854ab08b5c]::span_encoding::Span>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/util/bug.rs:34:40
  21:     0x7f2a7ee6bae4 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_opt::<rustc_middle[96fa0ccccea9bd32]::util::bug::opt_span_bug_fmt<rustc_span[788ac5854ab08b5c]::span_encoding::Span>::{closure#0}, ()>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1994:40
  22:     0x7f2a7ee6bae4 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context_opt::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_opt<rustc_middle[96fa0ccccea9bd32]::util::bug::opt_span_bug_fmt<rustc_span[788ac5854ab08b5c]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1946:22
  23:     0x7f2a7ee6d089 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_opt::<rustc_middle[96fa0ccccea9bd32]::util::bug::opt_span_bug_fmt<rustc_span[788ac5854ab08b5c]::span_encoding::Span>::{closure#0}, ()>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1994:9
  24:     0x7f2a7ee6d089 - rustc_middle[96fa0ccccea9bd32]::util::bug::opt_span_bug_fmt::<rustc_span[788ac5854ab08b5c]::span_encoding::Span>
                               at /home/ben/rust-master/compiler/rustc_middle/src/util/bug.rs:31:5
  25:     0x7f2a7ba51157 - rustc_middle[96fa0ccccea9bd32]::util::bug::span_bug_fmt::<rustc_span[788ac5854ab08b5c]::span_encoding::Span>
                               at /home/ben/rust-master/compiler/rustc_middle/src/util/bug.rs:22:5
  26:     0x7f2a7ee916b1 - <rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::check_invariants
  27:     0x7f2a7c29375a - rustc_privacy[4005d1ddde6036b]::effective_visibilities
                               at /home/ben/rust-master/compiler/rustc_privacy/src/lib.rs:2123:5
  28:     0x7f2a7dc6a93a - <rustc_query_system[58f3de1a41fc0632]::query::config::QueryVTable<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>>::compute
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/config.rs:65:9
  29:     0x7f2a7dc6a93a - rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job::<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/plumbing.rs:418:13
  30:     0x7f2a7dc6a93a - stacker[67c4101402540900]::maybe_grow::<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>
                               at /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/stacker-0.1.15/src/lib.rs:55:9
  31:     0x7f2a7dc6a93a - rustc_data_structures[ca9a7d7951ce0e10]::stack::ensure_sufficient_stack::<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>
                               at /home/ben/rust-master/compiler/rustc_data_structures/src/stack.rs:17:5
  32:     0x7f2a7dc6a93a - <rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query::<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/plumbing.rs:128:17
  33:     0x7f2a7dc6a93a - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context::<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1929:50
  34:     0x7f2a7dc6a93a - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::set_tlv::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1913:9
  35:     0x7f2a7dc6a93a - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context::<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1929:9
  36:     0x7f2a7dc6a93a - <rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query::<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/plumbing.rs:127:13
  37:     0x7f2a7dc6a93a - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context::<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1973:13
  38:     0x7f2a7dc6a93a - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1957:40
  39:     0x7f2a7dc6a93a - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context_opt::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1946:22
  40:     0x7f2a7dc6a93a - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1957:9
  41:     0x7f2a7dc6a93a - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context::<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>::{closure#0}, &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1970:9
  42:     0x7f2a7dc6a93a - <rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query::<&rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>::{closure#0}>
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/plumbing.rs:112:9
  43:     0x7f2a7dc6a93a - rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job::<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/plumbing.rs:417:22
  44:     0x7f2a7dc6a93a - rustc_query_system[58f3de1a41fc0632]::query::plumbing::try_execute_query::<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, rustc_query_system[58f3de1a41fc0632]::query::caches::DefaultCache<(), &rustc_middle[96fa0ccccea9bd32]::middle::privacy::EffectiveVisibilities>>
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/plumbing.rs:376:44
  45:     0x7f2a7dd0bae0 - rustc_query_system[58f3de1a41fc0632]::query::plumbing::get_query::<rustc_query_impl[d94da10183940df]::queries::effective_visibilities, rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt>
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/plumbing.rs:740:36
  46:     0x7f2a7d82d4ca - <rustc_query_impl[d94da10183940df]::Queries as rustc_middle[96fa0ccccea9bd32]::ty::query::QueryEngine>::effective_visibilities::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/plumbing.rs:708:17
  47:     0x7f2a7d82d4ca - <rustc_query_impl[d94da10183940df]::Queries as rustc_middle[96fa0ccccea9bd32]::ty::query::QueryEngine>::effective_visibilities
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/lib.rs:47:1
  48:     0x7f2a7bd0004e - <rustc_middle[96fa0ccccea9bd32]::ty::query::TyCtxtEnsure>::effective_visibilities
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/query.rs:232:17
  49:     0x7f2a7bd0004e - rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}::{closure#1}
                               at /home/ben/rust-master/compiler/rustc_interface/src/passes.rs:930:17
  50:     0x7f2a7bd0004e - <rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}::{closure#1} as core[54e86a843f8c5207]::ops::function::FnOnce<()>>::call_once
                               at /home/ben/rust-master/library/core/src/ops/function.rs:422:5
  51:     0x7f2a7bd0004e - <core[54e86a843f8c5207]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}::{closure#1}> as core[54e86a843f8c5207]::ops::function::FnOnce<()>>::call_once
                               at /home/ben/rust-master/library/core/src/panic/unwind_safe.rs:271:9
  52:     0x7f2a7bc2a0ed - std[b60d3abfffc60fec]::panicking::try::do_call::<core[54e86a843f8c5207]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}::{closure#1}>, ()>
                               at /home/ben/rust-master/library/std/src/panicking.rs:483:40
  53:     0x7f2a7bc2a0ed - std[b60d3abfffc60fec]::panicking::try::<(), core[54e86a843f8c5207]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}::{closure#1}>>
                               at /home/ben/rust-master/library/std/src/panicking.rs:447:19
  54:     0x7f2a7bc2a0ed - std[b60d3abfffc60fec]::panic::catch_unwind::<core[54e86a843f8c5207]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}::{closure#1}>, ()>
                               at /home/ben/rust-master/library/std/src/panic.rs:137:14
  55:     0x7f2a7bc2a0ed - rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}
                               at /home/ben/rust-master/compiler/rustc_interface/src/passes.rs:928:9
  56:     0x7f2a7bc2a0ed - <rustc_data_structures[ca9a7d7951ce0e10]::profiling::VerboseTimingGuard>::run::<(), rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}>
                               at /home/ben/rust-master/compiler/rustc_data_structures/src/profiling.rs:727:9
  57:     0x7f2a7bc2a0ed - <rustc_session[e47d5d392ff07646]::session::Session>::time::<(), rustc_interface[674a6a1478f544e6]::passes::analysis::{closure#5}>
                               at /home/ben/rust-master/compiler/rustc_session/src/utils.rs:10:9
  58:     0x7f2a7bc75e83 - rustc_interface[674a6a1478f544e6]::passes::analysis
                               at /home/ben/rust-master/compiler/rustc_interface/src/passes.rs:927:5
  59:     0x7f2a7dc608f2 - <rustc_query_system[58f3de1a41fc0632]::query::config::QueryVTable<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>>::compute
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/config.rs:65:9
  60:     0x7f2a7dc608f2 - rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job::<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/plumbing.rs:418:13
  61:     0x7f2a7dc608f2 - stacker[67c4101402540900]::maybe_grow::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>
                               at /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/stacker-0.1.15/src/lib.rs:55:9
  62:     0x7f2a7dc608f2 - rustc_data_structures[ca9a7d7951ce0e10]::stack::ensure_sufficient_stack::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>
                               at /home/ben/rust-master/compiler/rustc_data_structures/src/stack.rs:17:5
  63:     0x7f2a7dc608f2 - <rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/plumbing.rs:128:17
  64:     0x7f2a7dc608f2 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context::<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1929:50
  65:     0x7f2a7dc608f2 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::set_tlv::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1913:9
  66:     0x7f2a7dc608f2 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context::<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1929:9
  67:     0x7f2a7dc608f2 - <rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/plumbing.rs:127:13
  68:     0x7f2a7dc608f2 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context::<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1973:13
  69:     0x7f2a7dc608f2 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1957:40
  70:     0x7f2a7dc608f2 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context_opt::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1946:22
  71:     0x7f2a7dc608f2 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_context::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1957:9
  72:     0x7f2a7dc608f2 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::with_related_context::<<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1970:9
  73:     0x7f2a7dc608f2 - <rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt as rustc_query_system[58f3de1a41fc0632]::query::QueryContext>::start_query::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}>
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/plumbing.rs:112:9
  74:     0x7f2a7dc608f2 - rustc_query_system[58f3de1a41fc0632]::query::plumbing::execute_job::<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, (), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/plumbing.rs:417:22
  75:     0x7f2a7dc608f2 - rustc_query_system[58f3de1a41fc0632]::query::plumbing::try_execute_query::<rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt, rustc_query_system[58f3de1a41fc0632]::query::caches::DefaultCache<(), core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>>
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/plumbing.rs:376:44
  76:     0x7f2a7dd141c0 - rustc_query_system[58f3de1a41fc0632]::query::plumbing::get_query::<rustc_query_impl[d94da10183940df]::queries::analysis, rustc_query_impl[d94da10183940df]::plumbing::QueryCtxt>
                               at /home/ben/rust-master/compiler/rustc_query_system/src/query/plumbing.rs:740:36
  77:     0x7f2a7d7ff89a - <rustc_query_impl[d94da10183940df]::Queries as rustc_middle[96fa0ccccea9bd32]::ty::query::QueryEngine>::analysis::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/plumbing.rs:708:17
  78:     0x7f2a7d7ff89a - <rustc_query_impl[d94da10183940df]::Queries as rustc_middle[96fa0ccccea9bd32]::ty::query::QueryEngine>::analysis
                               at /home/ben/rust-master/compiler/rustc_query_impl/src/lib.rs:47:1
  79:     0x7f2a7bb29087 - <rustc_middle[96fa0ccccea9bd32]::ty::query::TyCtxtAt>::analysis
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/query.rs:261:17
  80:     0x7f2a7bb29087 - <rustc_middle[96fa0ccccea9bd32]::ty::context::TyCtxt>::analysis
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/query.rs:242:17
  81:     0x7f2a7bb29087 - rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}::{closure#2}::{closure#3}
                               at /home/ben/rust-master/compiler/rustc_driver/src/lib.rs:377:30
  82:     0x7f2a7bb29087 - <rustc_interface[674a6a1478f544e6]::passes::QueryContext>::enter::<rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_interface/src/passes.rs:765:42
  83:     0x7f2a7bb29087 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context::<<rustc_interface[674a6a1478f544e6]::passes::QueryContext>::enter<rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1929:50
  84:     0x7f2a7bb29087 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::set_tlv::<rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context<<rustc_interface[674a6a1478f544e6]::passes::QueryContext>::enter<rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1913:9
  85:     0x7f2a7bb29087 - rustc_middle[96fa0ccccea9bd32]::ty::context::tls::enter_context::<<rustc_interface[674a6a1478f544e6]::passes::QueryContext>::enter<rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_middle/src/ty/context.rs:1929:9
  86:     0x7f2a7bb29087 - <rustc_interface[674a6a1478f544e6]::passes::QueryContext>::enter::<rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_interface/src/passes.rs:765:9
  87:     0x7f2a7bb46e52 - rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}::{closure#2}
                               at /home/ben/rust-master/compiler/rustc_driver/src/lib.rs:376:13
  88:     0x7f2a7bb46e52 - <rustc_interface[674a6a1478f544e6]::interface::Compiler>::enter::<rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}::{closure#2}, core[54e86a843f8c5207]::result::Result<core[54e86a843f8c5207]::option::Option<rustc_interface[674a6a1478f544e6]::queries::Linker>, rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/compiler/rustc_interface/src/queries.rs:381:19
  89:     0x7f2a7ba927a2 - rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}
                               at /home/ben/rust-master/compiler/rustc_driver/src/lib.rs:308:22
  90:     0x7f2a7ba927a2 - rustc_interface[674a6a1478f544e6]::interface::run_compiler::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}::{closure#1}
                               at /home/ben/rust-master/compiler/rustc_interface/src/interface.rs:327:21
  91:     0x7f2a7ba927a2 - rustc_span[788ac5854ab08b5c]::with_source_map::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}::{closure#1}>
                               at /home/ben/rust-master/compiler/rustc_span/src/lib.rs:1009:5
  92:     0x7f2a7bb34953 - rustc_interface[674a6a1478f544e6]::interface::run_compiler::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_interface/src/interface.rs:321:13
  93:     0x7f2a7bb34953 - <scoped_tls[3f7a8f801319db86]::ScopedKey<rustc_span[788ac5854ab08b5c]::SessionGlobals>>::set::<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137:9
  94:     0x7f2a7bb2fe20 - rustc_span[788ac5854ab08b5c]::create_session_globals_then::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}>
                               at /home/ben/rust-master/compiler/rustc_span/src/lib.rs:111:5
  95:     0x7f2a7bb2fe20 - rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals::<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}
                               at /home/ben/rust-master/compiler/rustc_interface/src/util.rs:148:38
  96:     0x7f2a7bb2fe20 - std[b60d3abfffc60fec]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/library/std/src/sys_common/backtrace.rs:121:18
  97:     0x7f2a7bac42b9 - <std[b60d3abfffc60fec]::thread::Builder>::spawn_unchecked_::<rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#1}::{closure#0}
                               at /home/ben/rust-master/library/std/src/thread/mod.rs:551:17
  98:     0x7f2a7bac42b9 - <core[54e86a843f8c5207]::panic::unwind_safe::AssertUnwindSafe<<std[b60d3abfffc60fec]::thread::Builder>::spawn_unchecked_<rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#1}::{closure#0}> as core[54e86a843f8c5207]::ops::function::FnOnce<()>>::call_once
                               at /home/ben/rust-master/library/core/src/panic/unwind_safe.rs:271:9
  99:     0x7f2a7bac42b9 - std[b60d3abfffc60fec]::panicking::try::do_call::<core[54e86a843f8c5207]::panic::unwind_safe::AssertUnwindSafe<<std[b60d3abfffc60fec]::thread::Builder>::spawn_unchecked_<rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/library/std/src/panicking.rs:483:40
 100:     0x7f2a7bac42b9 - std[b60d3abfffc60fec]::panicking::try::<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, core[54e86a843f8c5207]::panic::unwind_safe::AssertUnwindSafe<<std[b60d3abfffc60fec]::thread::Builder>::spawn_unchecked_<rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
                               at /home/ben/rust-master/library/std/src/panicking.rs:447:19
 101:     0x7f2a7bac42b9 - std[b60d3abfffc60fec]::panic::catch_unwind::<core[54e86a843f8c5207]::panic::unwind_safe::AssertUnwindSafe<<std[b60d3abfffc60fec]::thread::Builder>::spawn_unchecked_<rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>
                               at /home/ben/rust-master/library/std/src/panic.rs:137:14
 102:     0x7f2a7bac42b9 - <std[b60d3abfffc60fec]::thread::Builder>::spawn_unchecked_::<rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#1}
                               at /home/ben/rust-master/library/std/src/thread/mod.rs:550:30
 103:     0x7f2a7bac42b9 - <<std[b60d3abfffc60fec]::thread::Builder>::spawn_unchecked_<rustc_interface[674a6a1478f544e6]::util::run_in_thread_pool_with_globals<rustc_interface[674a6a1478f544e6]::interface::run_compiler<core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>, rustc_driver[dc1df7a82508bf95]::run_compiler::{closure#1}>::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[54e86a843f8c5207]::result::Result<(), rustc_errors[95618b4e8d7d36aa]::ErrorGuaranteed>>::{closure#1} as core[54e86a843f8c5207]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/ben/rust-master/library/core/src/ops/function.rs:422:5
 104:     0x7f2a7aeac0b8 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf434786bd508e033
                               at /home/ben/rust-master/library/alloc/src/boxed.rs:1990:9
 105:     0x7f2a7aeac0b8 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h79e82a56a42c42f5
                               at /home/ben/rust-master/library/alloc/src/boxed.rs:1990:9
 106:     0x7f2a7ae93c45 - std::sys::unix::thread::Thread::new::thread_start::he8a1fd9beacdaef9
                               at /home/ben/rust-master/library/std/src/sys/unix/thread.rs:108:17
 107:     0x7f2a7b09f8fd - <unknown>
 108:     0x7f2a7b121a60 - <unknown>
 109:                0x0 - <unknown>

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.67.0-dev running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C opt-level=3 -C lto -C linker=clang -C strip=symbols -C codegen-units=1 -C force-frame-pointers=yes -C embed-bitcode=yes -C lto=fat -C panic=abort

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [effective_visibilities] checking effective visibilities
#1 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `bacon`

@saethlin saethlin added the C-bug Category: This is a bug. label Nov 17, 2022
@petrochenkov petrochenkov self-assigned this Nov 17, 2022
@Rageking8
Copy link
Contributor

Rageking8 commented Nov 17, 2022

@rustbot label +T-compiler +I-ICE

@rustbot
Copy link
Collaborator

rustbot commented Nov 17, 2022

Error: Label requires-debug-assertions can only be set by Rust team members

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.

@rustbot rustbot added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 17, 2022
@petrochenkov
Copy link
Contributor

I understand why this happens - parent import in an import chain can have a smaller visibility that the it's child's private visibility, so the equality condition in https://github.com/rust-lang/rust/blob/master/compiler/rustc_resolve/src/effective_visibilities.rs#L141-L144 fails and doesn't prune this case, and it ends up being in the table even despite being private.

However, I couldn't construct a minimized example for a test.
@saethlin if you could minimize the bacon v2.2.5 case into something small and self-contained that would be great.

@petrochenkov
Copy link
Contributor

Fixed in #104546.

@saethlin
Copy link
Member Author

I'd love to help but I have zero expertise with the part of the compiler that has trouble here, the codebase in question, or minimizing by hand, which I could use to produce a minimized version. I found this by blindly turning on all the debug checks and reinstalling all my utilities.

bors added a commit to rust-lang-ci/rust that referenced this issue Nov 25, 2022
privacy: Fix more (potential) issues with effective visibilities

Continuation of rust-lang#103965.
See individual commits for more detailed description of the changes.

The shortcuts removed in rust-lang@4eb63f6 and rust-lang@c7c7d16 could actually be correct (or correct after some tweaks), but they used global reasoning like "we can skip this update because if the code compiles then some other update should do the same thing eventually".
I have some expertise in this area, but I still have doubt whether such global reasoning was correct or not, especially in presence of all possible exotic cases with imports.
After this PR all table changes should be "locally correct" after every update, even if it may be overcautious.
If similar optimizations are introduced again they will need detailed comments explaining why it's legal to do what they do and providing proofs.

Fixes rust-lang#104249.
Fixes rust-lang#104539.
@bors bors closed this as completed in f0843b8 Nov 25, 2022
RalfJung pushed a commit to RalfJung/rust-analyzer that referenced this issue Apr 20, 2024
privacy: Fix more (potential) issues with effective visibilities

Continuation of rust-lang/rust#103965.
See individual commits for more detailed description of the changes.

The shortcuts removed in rust-lang/rust@4eb63f6 and rust-lang/rust@c7c7d16 could actually be correct (or correct after some tweaks), but they used global reasoning like "we can skip this update because if the code compiles then some other update should do the same thing eventually".
I have some expertise in this area, but I still have doubt whether such global reasoning was correct or not, especially in presence of all possible exotic cases with imports.
After this PR all table changes should be "locally correct" after every update, even if it may be overcautious.
If similar optimizations are introduced again they will need detailed comments explaining why it's legal to do what they do and providing proofs.

Fixes rust-lang/rust#104249.
Fixes rust-lang/rust#104539.
RalfJung pushed a commit to RalfJung/rust-analyzer that referenced this issue Apr 27, 2024
privacy: Fix more (potential) issues with effective visibilities

Continuation of rust-lang/rust#103965.
See individual commits for more detailed description of the changes.

The shortcuts removed in rust-lang/rust@4eb63f6 and rust-lang/rust@c7c7d16 could actually be correct (or correct after some tweaks), but they used global reasoning like "we can skip this update because if the code compiles then some other update should do the same thing eventually".
I have some expertise in this area, but I still have doubt whether such global reasoning was correct or not, especially in presence of all possible exotic cases with imports.
After this PR all table changes should be "locally correct" after every update, even if it may be overcautious.
If similar optimizations are introduced again they will need detailed comments explaining why it's legal to do what they do and providing proofs.

Fixes rust-lang/rust#104249.
Fixes rust-lang/rust#104539.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
4 participants