error: internal compiler error: /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17: Statement not allowed in this MIR phase
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `new::linux_uapi::linux::can::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/unix/linux_like/linux/gnu/mod.rs:383:1: 383:15>::si_addr`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/unix/linux_like/linux/gnu/mod.rs:383:1: 383:15>::si_value`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/unix/linux_like/linux/gnu/mod.rs:443:1: 443:15>::sifields`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/unix/linux_like/linux/gnu/mod.rs:443:1: 443:15>::si_pid`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/unix/linux_like/linux/gnu/mod.rs:443:1: 443:15>::si_uid`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/unix/linux_like/linux/gnu/mod.rs:443:1: 443:15>::si_status`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/unix/linux_like/linux/gnu/mod.rs:443:1: 443:15>::si_utime`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/unix/linux_like/linux/gnu/mod.rs:443:1: 443:15>::si_stime`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux::gnu::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux_l4re_shared::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux_l4re_shared::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/macros.rs:221:9: 221:39>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `unix::linux_like::linux_l4re_shared::CPU_ISSET`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
thread 'rustc' (51076) panicked at /rustc-dev/8954863c81df429ebf96ea38a16c76f209995833/compiler/rustc_borrowck/src/polonius/legacy/loan_invalidations.rs:86:17:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
1: <rustc_errors::diagnostic::BugAbort as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
2: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
3: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
4: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
5: rustc_middle::util::bug::bug_fmt
6: <rustc_borrowck::polonius::legacy::loan_invalidations::LoanInvalidationsGenerator as rustc_middle::mir::visit::Visitor>::visit_statement
7: rustc_borrowck::borrowck_check_region_constraints
8: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
9: rustc_borrowck::mir_borrowck
[... omitted 1 frame ...]
10: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
11: rustc_interface::passes::analysis
12: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/rustc-ice-2026-06-07T11_15_26-51074.txt` to your bug report
note: rustc 1.98.0-nightly (8954863c8 2026-06-05) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z polonius
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `types::<impl at /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/types.rs:33:1: 33:40>::fmt`
#1 [analysis] running analysis passes on crate `libc`
end of query stack
error: could not compile `libc` (lib)
Caused by:
process didn't exit successfully: `/home/irevoire/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc --crate-name libc --edition=2021 /home/irevoire/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=180 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 '--allow=clippy::used_underscore_binding' --allow=unused_qualifications '--warn=clippy::unnecessary_semicolon' '--allow=clippy::unnecessary_cast' '--allow=clippy::uninlined_format_args' '--warn=clippy::ptr_as_ptr' '--allow=clippy::non_minimal_cfg' '--allow=clippy::missing_safety_doc' '--warn=clippy::map_unwrap_or' '--warn=clippy::manual_assert' '--allow=clippy::identity_op' '--warn=clippy::explicit_iter_loop' '--allow=clippy::expl_impl_clone_on_copy' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("align", "const-extern-fn", "default", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core", "std", "use_std"))' -C metadata=ccfebd2aa6db45f6 -C extra-filename=-7a61ccb2137248e1 --out-dir /home/irevoire/lyngk/target/debug/deps -L dependency=/home/irevoire/lyngk/target/debug/deps --cap-lints allow -Zpolonius --cfg freebsd12 --check-cfg 'cfg(emscripten_old_stat_abi)' --check-cfg 'cfg(espidf_picolibc)' --check-cfg 'cfg(espidf_time32)' --check-cfg 'cfg(freebsd10)' --check-cfg 'cfg(freebsd11)' --check-cfg 'cfg(freebsd12)' --check-cfg 'cfg(freebsd13)' --check-cfg 'cfg(freebsd14)' --check-cfg 'cfg(freebsd15)' --check-cfg 'cfg(gnu_file_offset_bits64)' --check-cfg 'cfg(gnu_time_bits64)' --check-cfg 'cfg(libc_deny_warnings)' --check-cfg 'cfg(linux_time_bits64)' --check-cfg 'cfg(musl_v1_2_3)' --check-cfg 'cfg(musl32_time64)' --check-cfg 'cfg(musl_redir_time64)' --check-cfg 'cfg(vxworks_lt_25_09)' --check-cfg 'cfg(target_os,values("switch","aix","ohos","hurd","rtems","visionos","nuttx","cygwin","qurt"))' --check-cfg 'cfg(target_env,values("illumos","wasi","aix","ohos","nto71_iosock","nto80"))' --check-cfg 'cfg(target_arch,values("loongarch64","mips32r6","mips64r6","csky"))'` (exit status: 101)
Code
Hey, I'll try to minimize the code later today. I was struggling with avalue borrowed here after moveerror, which seemed wrong to me. I tried to compile my code with polonius just to see if that would solve the issue and got this error.Here's the repo that produced the error: https://github.com/irevoire/lyngk/blob/6163826779f38a17f096d5ea1ffa676ffe211419/src/board.rs#L999
To reproduce, you can run
RUSTFLAGS="-Zpolonius" cargo +nightly buildin the root of the repo.Apparently the issue was not with my code but with the
randcrate instead.But I don't see myself minimizing the bug from the 9k loc of this crate I don't know much about sorry 😭
Meta
Error output
backtrace