Skip to content

ICE: snapshot vec: index out of bounds #142488

Open
@matthiaskrgr

Description

@matthiaskrgr

auto-reduced (treereduce-rust):

pub trait Parser<Input>: Sized {
    fn map(self) -> Map<Self> {
        todo!()
    }
}

impl<I, A: Parser<I>> Parser<I> for (A,) {}

pub fn metric_stream_parser<'a, I>() -> impl Parser<I, Output = ()> {
    (Ok(),).map()
}
original code

original:

//@ check-pass

pub trait Any {}
impl<T> Any for T {}

pub trait StreamOnce {
    type Range;
}

pub trait Parser<Input>: Sized {
    type Output;
    type PartialState;
    fn map(self) -> Map<Self> {
        todo!()
    }
}

pub struct Map<P>(P);
impl<I, P: Parser<I, Output = ()>> Parser<I> for Map<P> {
    type Output = ();
    type PartialState = P::PartialState;
}

struct TakeWhile1<Input>(Input);
impl<I: StreamOnce> Parser<I> for TakeWhile1<I> {
    type Output = I::Range;
    type PartialState = ();
}
impl<I> TakeWhile1<I> {
    fn new() -> Self {
        todo!()
    }
}

impl<I, A: Parser<I>> Parser<I> for (A,) {
    type Output = ();
    type PartialState = Map<A::Output>;
}

pub fn metric_stream_parser<'a, I>() -> impl Parser<I, Output = (), PartialState = impl Any + 'a>
where
    I: StreamOnce<Range = &'a [()]>,
{
    (Ok(
        Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(
            Ok(Ok(Ok(Ok(Ok(Ok(Ok("")))))))
        ))))))))))))))))))))))))))))))
    ),).map()
}

fn main() {}

Version information

rustc 1.89.0-nightly (64c81fd10 2025-06-14)
binary: rustc
commit-hash: 64c81fd10509924ca4da5d93d6052a65b75418a5
commit-date: 2025-06-14
host: x86_64-unknown-linux-gnu
release: 1.89.0-nightly
LLVM version: 20.1.5

Command:
/home/matthias/.rustup/toolchains/master/bin/rustc

Program output

error[E0412]: cannot find type `Map` in this scope
 --> /tmp/icemaker_global_tempdir.dYX4DQbVMqA6/rustc_testrunner_tmpdir_reporting.XuxPFEJCUTP0/mvce.rs:2:21
  |
2 |     fn map(self) -> Map<Self> {
  |                     ^^^ not found in this scope
  |
help: consider importing this struct
  |
1 + use std::iter::Map;
  |

error[E0601]: `main` function not found in crate `mvce`
  --> /tmp/icemaker_global_tempdir.dYX4DQbVMqA6/rustc_testrunner_tmpdir_reporting.XuxPFEJCUTP0/mvce.rs:11:2
   |
11 | }
   |  ^ consider adding a `main` function to `/tmp/icemaker_global_tempdir.dYX4DQbVMqA6/rustc_testrunner_tmpdir_reporting.XuxPFEJCUTP0/mvce.rs`

error[E0220]: associated type `Output` not found for `Parser`
 --> /tmp/icemaker_global_tempdir.dYX4DQbVMqA6/rustc_testrunner_tmpdir_reporting.XuxPFEJCUTP0/mvce.rs:9:56
  |
9 | pub fn metric_stream_parser<'a, I>() -> impl Parser<I, Output = ()> {
  |                                                        ^^^^^^ associated type `Output` not found

error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
   --> /tmp/icemaker_global_tempdir.dYX4DQbVMqA6/rustc_testrunner_tmpdir_reporting.XuxPFEJCUTP0/mvce.rs:10:6
    |
10  |     (Ok(),).map()
    |      ^^-- argument #1 is missing
    |
note: tuple variant defined here
   --> /home/matthias/.rustup/toolchains/master/lib/rustlib/src/rust/library/core/src/result.rs:552:5
    |
552 |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     ^^
help: provide the argument
    |
10  |     (Ok(/* value */),).map()
    |         +++++++++++


thread 'rustc' panicked at /rust/deps/ena-0.14.3/src/snapshot_vec.rs:199:10:
index out of bounds: the len is 4 but the index is 6
stack backtrace:
   0:     0x703400307503 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h622fcda806628687
   1:     0x703400a02df7 - core::fmt::write::h798915c917929b83
   2:     0x7034002fd013 - std::io::Write::write_fmt::h4ba4d690887f0b58
   3:     0x703400307362 - std::sys::backtrace::BacktraceLock::print::hf1afb80f7d524291
   4:     0x70340030af4a - std::panicking::default_hook::{{closure}}::h4cdaf4576e5005b2
   5:     0x70340030aacf - std::panicking::default_hook::hae8ea8c02b6a6926
   6:     0x7033ff4054b3 - std[ce9f139309b5ea23]::panicking::update_hook::<alloc[548d0756b796dd50]::boxed::Box<rustc_driver_impl[93f78bac80a221c3]::install_ice_hook::{closure#1}>>::{closure#0}
   7:     0x70340030b7b3 - std::panicking::rust_panic_with_hook::h17cd2fa6080b68b5
   8:     0x70340030b4aa - std::panicking::begin_panic_handler::{{closure}}::ha47880127eb0135c
   9:     0x7034003079d9 - std::sys::backtrace::__rust_end_short_backtrace::hfbd1ce619f587bee
  10:     0x70340030b17d - __rustc[2b046404ee848a0e]::rust_begin_unwind
  11:     0x7033fca95800 - core::panicking::panic_fmt::h41533f5a03ab1bc0
  12:     0x7033feb72f13 - core::panicking::panic_bounds_check::h96ed670a7f314bd1
  13:     0x703402240793 - <ena[5659a06d7b26a853]::unify::UnificationTable<ena[5659a06d7b26a853]::unify::backing_vec::InPlace<rustc_infer[ffc729d0c99f89c2]::infer::type_variable::TyVidEqKey, &mut alloc[548d0756b796dd50]::vec::Vec<ena[5659a06d7b26a853]::unify::VarValue<rustc_infer[ffc729d0c99f89c2]::infer::type_variable::TyVidEqKey>>, &mut rustc_infer[ffc729d0c99f89c2]::infer::snapshot::undo_log::InferCtxtUndoLogs>>>::uninlined_get_root_key.cold
  14:     0x703400e9de73 - <rustc_infer[ffc729d0c99f89c2]::infer::canonical::canonicalizer::Canonicalizer as rustc_type_ir[64a3de4e750ead76]::fold::TypeFolder<rustc_middle[240252416d0bc281]::ty::context::TyCtxt>>::fold_ty
  15:     0x703400e9e0eb - <rustc_infer[ffc729d0c99f89c2]::infer::canonical::canonicalizer::Canonicalizer as rustc_type_ir[64a3de4e750ead76]::fold::TypeFolder<rustc_middle[240252416d0bc281]::ty::context::TyCtxt>>::fold_ty
  16:     0x703400e9e952 - <rustc_infer[ffc729d0c99f89c2]::infer::canonical::canonicalizer::Canonicalizer as rustc_type_ir[64a3de4e750ead76]::fold::TypeFolder<rustc_middle[240252416d0bc281]::ty::context::TyCtxt>>::fold_ty
  17:     0x703400e9caad - <rustc_infer[ffc729d0c99f89c2]::infer::canonical::canonicalizer::Canonicalizer as rustc_type_ir[64a3de4e750ead76]::fold::TypeFolder<rustc_middle[240252416d0bc281]::ty::context::TyCtxt>>::fold_predicate
  18:     0x703400eb95be - <rustc_infer[ffc729d0c99f89c2]::infer::InferCtxt as rustc_trait_selection[2c8f0c83d986aa47]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
  19:     0x7033ff651703 - <rustc_infer[ffc729d0c99f89c2]::infer::InferCtxt as rustc_trait_selection[2c8f0c83d986aa47]::infer::InferCtxtExt>::type_implements_trait::<&rustc_middle[240252416d0bc281]::ty::list::RawList<(), rustc_middle[240252416d0bc281]::ty::generic_args::GenericArg>>
  20:     0x7033ff71f748 - <rustc_hir_typeck[7f2a9730742b7418]::fn_ctxt::FnCtxt>::report_no_match_method_error
  21:     0x7033ff760461 - <rustc_hir_typeck[7f2a9730742b7418]::fn_ctxt::FnCtxt>::report_method_error
  22:     0x7034013a874d - <rustc_hir_typeck[7f2a9730742b7418]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  23:     0x70340135c750 - <rustc_hir_typeck[7f2a9730742b7418]::fn_ctxt::FnCtxt>::check_expr_block
  24:     0x70340139b0d5 - <rustc_hir_typeck[7f2a9730742b7418]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  25:     0x70340136886d - rustc_hir_typeck[7f2a9730742b7418]::check::check_fn
  26:     0x703401bdcd1f - rustc_hir_typeck[7f2a9730742b7418]::typeck_with_inspect::{closure#0}
  27:     0x703401bc9330 - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>>
  28:     0x703400c342ae - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_data_structures[efd29f15d54b45c2]::vec_cache::VecCache<rustc_span[b2461297b059ab2d]::def_id::LocalDefId, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[bdb5004cf0f1ab6c]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  29:     0x703400c33d09 - rustc_query_impl[d9e684a6233238b4]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  30:     0x703400f0a3b2 - rustc_mir_build[3547051b6980b501]::thir::pattern::check_match::check_match
  31:     0x703400f09707 - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::check_match::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 1usize]>>
  32:     0x7034011aeb39 - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_data_structures[efd29f15d54b45c2]::vec_cache::VecCache<rustc_span[b2461297b059ab2d]::def_id::LocalDefId, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[bdb5004cf0f1ab6c]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  33:     0x7034011ae77d - rustc_query_impl[d9e684a6233238b4]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace
  34:     0x703400f3b1df - rustc_mir_build[3547051b6980b501]::builder::build_mir
  35:     0x703400a08a45 - rustc_mir_transform[b3a74188bb3977c9]::mir_built
  36:     0x703400a08a17 - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::mir_built::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>>
  37:     0x703400c342ae - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_data_structures[efd29f15d54b45c2]::vec_cache::VecCache<rustc_span[b2461297b059ab2d]::def_id::LocalDefId, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[bdb5004cf0f1ab6c]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  38:     0x703400c33dc9 - rustc_query_impl[d9e684a6233238b4]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace
  39:     0x703400a2f3b8 - rustc_mir_transform[b3a74188bb3977c9]::ffi_unwind_calls::has_ffi_unwind_calls
  40:     0x703400a2edb7 - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::has_ffi_unwind_calls::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 1usize]>>
  41:     0x7034011aeb39 - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_data_structures[efd29f15d54b45c2]::vec_cache::VecCache<rustc_span[b2461297b059ab2d]::def_id::LocalDefId, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[bdb5004cf0f1ab6c]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  42:     0x7034011ae811 - rustc_query_impl[d9e684a6233238b4]::query_impl::has_ffi_unwind_calls::get_query_non_incr::__rust_end_short_backtrace
  43:     0x7033fdf42011 - rustc_mir_transform[b3a74188bb3977c9]::mir_promoted
  44:     0x70340118089a - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::mir_promoted::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 16usize]>>
  45:     0x703401180b54 - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_data_structures[efd29f15d54b45c2]::vec_cache::VecCache<rustc_span[b2461297b059ab2d]::def_id::LocalDefId, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 16usize]>, rustc_query_system[bdb5004cf0f1ab6c]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  46:     0x7034011807a2 - rustc_query_impl[d9e684a6233238b4]::query_impl::mir_promoted::get_query_non_incr::__rust_end_short_backtrace
  47:     0x703400c35328 - rustc_borrowck[b3d45a5f99f01d09]::mir_borrowck
  48:     0x703400c351d9 - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>>
  49:     0x703400c342ae - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_data_structures[efd29f15d54b45c2]::vec_cache::VecCache<rustc_span[b2461297b059ab2d]::def_id::LocalDefId, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[bdb5004cf0f1ab6c]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  50:     0x703400c33b89 - rustc_query_impl[d9e684a6233238b4]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  51:     0x703401cbff8c - rustc_hir_analysis[ca51bbd83dcc5d78]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit
  52:     0x703401cbfd33 - rustc_hir_analysis[ca51bbd83dcc5d78]::collect::type_of::type_of_opaque
  53:     0x703401cbfc2f - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::type_of_opaque::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>>
  54:     0x703400a4c1e5 - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_query_system[bdb5004cf0f1ab6c]::query::caches::DefIdCache<rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  55:     0x7034014972db - rustc_query_impl[d9e684a6233238b4]::query_impl::type_of_opaque::get_query_non_incr::__rust_end_short_backtrace
  56:     0x703401494caf - rustc_hir_analysis[ca51bbd83dcc5d78]::collect::type_of::type_of
  57:     0x703400c7d9e6 - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>>
  58:     0x703400a4c1e5 - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_query_system[bdb5004cf0f1ab6c]::query::caches::DefIdCache<rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  59:     0x703400a4bd9d - rustc_query_impl[d9e684a6233238b4]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  60:     0x703401cc03fd - rustc_hir_analysis[ca51bbd83dcc5d78]::check::check::check_opaque
  61:     0x703400d9e47c - rustc_hir_analysis[ca51bbd83dcc5d78]::check::check::check_item_type
  62:     0x7034011af796 - rustc_hir_analysis[ca51bbd83dcc5d78]::check::wfcheck::check_well_formed
  63:     0x7034011af55b - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 1usize]>>
  64:     0x7034011aed8d - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_data_structures[efd29f15d54b45c2]::vec_cache::VecCache<rustc_span[b2461297b059ab2d]::def_id::LocalDefId, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[bdb5004cf0f1ab6c]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  65:     0x7034011ae8c2 - rustc_query_impl[d9e684a6233238b4]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace
  66:     0x7034011ac07c - rustc_hir_analysis[ca51bbd83dcc5d78]::check::wfcheck::check_type_wf
  67:     0x7034011abf1d - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::check_type_wf::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 1usize]>>
  68:     0x703401a58b48 - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_query_system[bdb5004cf0f1ab6c]::query::caches::SingleCache<rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  69:     0x703401a58942 - rustc_query_impl[d9e684a6233238b4]::query_impl::check_type_wf::get_query_non_incr::__rust_end_short_backtrace
  70:     0x703400c42e9d - rustc_hir_analysis[ca51bbd83dcc5d78]::check_crate
  71:     0x703400c2fe59 - rustc_interface[c7d5652f6db8dc8d]::passes::analysis
  72:     0x703400c2fa73 - rustc_query_impl[d9e684a6233238b4]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d9e684a6233238b4]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 0usize]>>
  73:     0x703401a522ce - rustc_query_system[bdb5004cf0f1ab6c]::query::plumbing::try_execute_query::<rustc_query_impl[d9e684a6233238b4]::DynamicConfig<rustc_query_system[bdb5004cf0f1ab6c]::query::caches::SingleCache<rustc_middle[240252416d0bc281]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[d9e684a6233238b4]::plumbing::QueryCtxt, false>
  74:     0x703401a51fc2 - rustc_query_impl[d9e684a6233238b4]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  75:     0x703401ddf499 - rustc_interface[c7d5652f6db8dc8d]::passes::create_and_enter_global_ctxt::<core[5f8c33fb8fafd2bc]::option::Option<rustc_interface[c7d5652f6db8dc8d]::queries::Linker>, rustc_driver_impl[93f78bac80a221c3]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
  76:     0x703401c5ccc9 - rustc_interface[c7d5652f6db8dc8d]::interface::run_compiler::<(), rustc_driver_impl[93f78bac80a221c3]::run_compiler::{closure#0}>::{closure#1}
  77:     0x703401c249b2 - std[ce9f139309b5ea23]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[c7d5652f6db8dc8d]::util::run_in_thread_with_globals<rustc_interface[c7d5652f6db8dc8d]::util::run_in_thread_pool_with_globals<rustc_interface[c7d5652f6db8dc8d]::interface::run_compiler<(), rustc_driver_impl[93f78bac80a221c3]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  78:     0x703401c24696 - <<std[ce9f139309b5ea23]::thread::Builder>::spawn_unchecked_<rustc_interface[c7d5652f6db8dc8d]::util::run_in_thread_with_globals<rustc_interface[c7d5652f6db8dc8d]::util::run_in_thread_pool_with_globals<rustc_interface[c7d5652f6db8dc8d]::interface::run_compiler<(), rustc_driver_impl[93f78bac80a221c3]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5f8c33fb8fafd2bc]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  79:     0x703401c22cbd - std::sys::pal::unix::thread::Thread::new::thread_start::hf96723a9b1139b9e
  80:     0x7033fb65f7eb - <unknown>
  81:     0x7033fb6e318c - <unknown>
  82:                0x0 - <unknown>

error: 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: please make sure that you have updated to the latest nightly

note: rustc 1.89.0-nightly (64c81fd10 2025-06-14) running on x86_64-unknown-linux-gnu

query stack during panic:
#0 [typeck] type-checking `metric_stream_parser`
#1 [check_match] match-checking `metric_stream_parser`
#2 [mir_built] building MIR for `metric_stream_parser`
#3 [has_ffi_unwind_calls] checking if `metric_stream_parser` contains FFI-unwind calls
#4 [mir_promoted] promoting constants in MIR for `metric_stream_parser`
#5 [mir_borrowck] borrow-checking `metric_stream_parser`
#6 [type_of_opaque] computing type of opaque `metric_stream_parser::{opaque#0}`
#7 [type_of] computing type of `metric_stream_parser::{opaque#0}`
#8 [check_well_formed] checking that `metric_stream_parser::{opaque#0}` is well-formed
#9 [check_type_wf] checking that types are well-formed
#10 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to 4 previous errors

Some errors have detailed explanations: E0061, E0220, E0412, E0601.
For more information about an error, try `rustc --explain E0061`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-has-bisectionStatus: A bisection has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions