Closed as duplicate of#135515
Description
Code
strftime-ruby as of artichoke/strftime-ruby@09ec460.
Meta
rustc --version --verbose
:
rustc 1.86.0-nightly (8361aef0d 2025-01-14)
binary: rustc
commit-hash: 8361aef0d7c29b1501a316a208ed84cd8a2ae5da
commit-date: 2025-01-14
host: x86_64-unknown-linux-gnu
release: 1.86.0-nightly
LLVM version: 19.1.6
Error output
thread 'rustc' panicked at /rustc/8361aef0d7c29b1501a316a208ed84cd8a2ae5da/compiler/rustc_type_ir/src/binder.rs:806:9:
const parameter `'a/#0` ('a/#0/0) out of range when instantiating args=[]
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: <rustc_type_ir::binder::ArgFolder<rustc_middle::ty::context::TyCtxt>>::region_param_out_of_range
3: <rustc_middle::ty::generics::GenericPredicates>::instantiate_into
4: rustc_trait_selection::traits::instantiate_and_check_impossible_predicates
[... omitted 2 frames ...]
5: rustc_middle::query::plumbing::query_get_at::<rustc_query_system::query::caches::DefaultCache<(rustc_span::def_id::DefId, &rustc_middle::ty::list::RawList<(), rustc_middle::ty::generic_args::GenericArg>), rustc_middle::query::erase::Erased<[u8; 1]>>>
6: rustc_monomorphize::partitioning::collect_and_partition_mono_items
[... omitted 2 frames ...]
7: rustc_codegen_ssa::back::symbol_export::exported_symbols_provider_local
[... omitted 2 frames ...]
8: <rustc_metadata::rmeta::encoder::EncodeContext>::encode_crate_root
9: rustc_metadata::rmeta::encoder::encode_metadata
10: rustc_metadata::fs::encode_and_write_metadata
11: <rustc_interface::queries::Linker>::codegen_and_build_linker
12: rustc_interface::passes::create_and_enter_global_ctxt::<core::option::Option<rustc_interface::queries::Linker>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
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.
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: please attach the file at `/home/runner/work/strftime-ruby/strftime-ruby/rustc-ice-20[25](https://github.com/artichoke/strftime-ruby/actions/runs/12799423311/job/35685443976#step:5:26)-01-16T00_20_13-2805.txt` to your bug report
note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C passes=sancov-module -C llvm-args=-sanitizer-coverage-level=4 -C llvm-args=-sanitizer-coverage-inline-8bit-counters -C llvm-args=-sanitizer-coverage-pc-table -C llvm-args=-sanitizer-coverage-trace-compares -C link-dead-code -Z sanitizer=address -C llvm-args=-sanitizer-coverage-stack-depth -C debug-assertions -C codegen-units=1
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [instantiate_and_check_impossible_predicates] checking impossible instantiated predicates: `format::utils::SizeLimiter`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
#2 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
error: could not compile `strftime-ruby` (lib)
Backtrace
<backtrace>