ICE when running cargo expand
#99327
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.
Upon running
cargo expand
, the compiler panics when havingas a dependency.
cargo check
andcargo build
complete without error.Probably this is related to #99326 ?
Code
https://github.com/itsCryne/rust_ice_mve
Meta
rustc --version --verbose
:and
cargo expand --version
:Error output
cargo expand
:Backtrace
`RUST_BACKTRACE=1 cargo expand`: ``` Checking time v0.3.11 Checking chrono v0.4.19 Checking serde_json v1.0.82 Checking rust_decimal v1.25.0 Checking uuid v1.1.2 Checking futures-executor v0.3.21 Checking ouroboros v0.15.0 Compiling sea-orm-macros v0.9.0 thread 'rustc' panicked at 'index out of bounds: the len is 1 but the index is 2', compiler/rustc_builtin_macros/src/format.rs:1001:28 stack backtrace: 0: rust_begin_unwind at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:584:5 1: core::panicking::panic_fmt at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/panicking.rs:142:14 2: core::panicking::panic_bounds_check at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/panicking.rs:84:5 3: rustc_builtin_macros::format::expand_preparsed_format_args 4: rustc_builtin_macros::format::expand_format_args_impl 5: ::fully_expand_fragment 6: ::expand_crate 7: ::time::, rustc_interface::passes::configure_and_expand::{closure#1}> 8: ::access::<::expansion::{closure#0}::{closure#0}, core::result::Result> 9: ::expansion 10: ::enter::, rustc_errors::ErrorGuaranteed>> 11: rustc_span::with_source_map::, rustc_interface::interface::create_compiler_and_run, rustc_driver::run_compiler::{closure#1}>::{closure#1}> 12: rustc_interface::interface::create_compiler_and_run::, rustc_driver::run_compiler::{closure#1}> 13: >::set::, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. 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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: rustc 1.64.0-nightly (23e21bd 2022-07-15) running on x86_64-unknown-linux-gnu note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 note: some of the compiler flags provided by cargo are hidden query stack during panic: end of query stack error: could not compile `time` warning: build failed, waiting for other jobs to finish... ```
The text was updated successfully, but these errors were encountered: