Skip to content

ICE in ensure_public #29161

Closed
Closed
@nagisa

Description

@nagisa
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:365
stack backtrace:
   1:     0x7fd8bfe28940 - sys::backtrace::tracing::imp::write::he27ef2eb40e30753Plt
   2:     0x7fd8bfe2f215 - panicking::log_panic::_<closure>::closure.39316
   3:     0x7fd8bfe2ec85 - panicking::log_panic::h20a17353a34447751lx
   4:     0x7fd8bfdf3783 - sys_common::unwind::begin_unwind_inner::hf876a8bedc1a7d89gds
   5:     0x7fd8bfdf40e8 - sys_common::unwind::begin_unwind_fmt::h69a2566a09092307mcs
   6:     0x7fd8bfe26801 - rust_begin_unwind
   7:     0x7fd8bfe79a7f - panicking::panic_fmt::h4197e07a6c9f36b2dMK
   8:     0x7fd8bfe73fb8 - panicking::panic::h14dc0798a39fe65fKKK
   9:     0x7fd8bf09823a - _<impl>::ensure_public::hde035fa84af6435dh0a
  10:     0x7fd8bf099244 - _<impl>::check_path::_<closure>::_<closure>::closure.12246
  11:     0x7fd8bf098c88 - _<impl>::check_path::_<closure>::closure.12244
  12:     0x7fd8bf09895b - _<impl>::check_path::h708120903b3b4e28Kbb
  13:     0x7fd8bf099b9a - _<impl>::visit_path::hdfda786dba7d0ea3jtb
  14:     0x7fd8bf09aef5 - _<impl>::visit_expr::h2d55fa99aaddc54awkb
  15:     0x7fd8bf09ae93 - _<impl>::visit_expr::h2d55fa99aaddc54awkb
  16:     0x7fd8bf0995e5 - visit::walk_item::walk_item::h16273349179620707161
  17:     0x7fd8bf09fe85 - check_crate::ha75a8757309cbaacuXb
  18:     0x7fd8c02f80da - driver::phase_3_run_analysis_passes::_<closure>::closure.21793
  19:     0x7fd8c02debf1 - middle::ty::context::_<impl>::create_and_enter::create_and_enter::h13642880013250108432
  20:     0x7fd8c02da02a - driver::phase_3_run_analysis_passes::h18429705411053108892
  21:     0x7fd8c02b8b64 - driver::compile_input::h8be95b88a1576d993ba
  22:     0x7fd8c041304b - run_compiler::h83cbc3300765328cysc
  23:     0x7fd8c04108d6 - boxed::_<impl>::call_box::call_box::h17940959236498258992
  24:     0x7fd8c04101e4 - sys_common::unwind::try::try_fn::try_fn::h12133114510587347876
  25:     0x7fd8bfe26668 - __rust_try
  26:     0x7fd8bfe1adeb - sys_common::unwind::try::inner_try::hbe46f56ef602f07cO9r
  27:     0x7fd8c041037e - boxed::_<impl>::call_box::call_box::h2880662908038604228
  28:     0x7fd8bfe2dce3 - sys::thread::_<impl>::new::thread_start::h13325138c3b56c4cdEw
  29:     0x7fd8b94fa4a3 - start_thread
  30:     0x7fd8bfabb13c - clone
  31:                0x0 - <unknown>

Trying to make the test case now.

Metadata

Metadata

Assignees

Labels

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