Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'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 #99275

Closed
dilawar opened this issue Jul 15, 2022 · 1 comment
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.

Comments

@dilawar
Copy link

dilawar commented Jul 15, 2022

Code

Large codebase. Build failed after updating to the latest nightly.

Meta

rustc --version --verbose:

[DELL@Dell-Micro-PC agent (84-optimize-querying-dnscache)]$ rustc --version --verbose
rustc 1.64.0-nightly (c2f428d2f 2022-07-14)
binary: rustc
commit-hash: c2f428d2f3340a0e7d995f4726223db91b93704c
commit-date: 2022-07-14
host: x86_64-pc-windows-msvc
release: 1.64.0-nightly
LLVM version: 14.0.6

Error output

  Compiling svgtypes v0.5.0
   Compiling http v0.2.8
   Compiling time v0.3.11
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
Backtrace

stack backtrace:
   0:     0x7ffe28809d2f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h22584ecc91186e64
   1:     0x7ffe2884547a - core::fmt::write::h22be7db69745eece
   2:     0x7ffe287fcbaa - <std::io::IoSlice as core::fmt::Debug>::fmt::h61da6bb58c94015d
   3:     0x7ffe2880d72b - std::panicking::default_hook::heafef5cea9c12d8b
   4:     0x7ffe2880d357 - std::panicking::default_hook::heafef5cea9c12d8b
   5:     0x7ffe16d8b4a4 - <rustc_session[535a8d342c23eaa3]::options::WasiExecModel as rustc_session[535a8d342c23eaa3]::config::dep_tracking::DepTrackingHash>::hash
   6:     0x7ffe2880e10c - std::panicking::rust_panic_with_hook::h79169c76d34f987b
   7:     0x7ffe2880de8d - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::hfcbc70f6a02eb89b
   8:     0x7ffe2880aa27 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h22584ecc91186e64
   9:     0x7ffe2880db60 - rust_begin_unwind
  10:     0x7ffe2887b445 - core::panicking::panic_fmt::hae5fa724e8b1cacf
  11:     0x7ffe2887b367 - core::panicking::panic_bounds_check::h08b683e936011160
  12:     0x7ffe14ef4b34 - <rustc_builtin_macros[a4414a5fcae6fbbd]::source_util::expand_include::ExpandResult as rustc_expand[f9fe2c5fbee49e01]::base::MacResult>::make_items
  13:     0x7ffe14eed297 - <rustc_builtin_macros[a4414a5fcae6fbbd]::source_util::expand_include::ExpandResult as rustc_expand[f9fe2c5fbee49e01]::base::MacResult>::make_items
  14:     0x7ffe168c5032 - <rustc_expand[f9fe2c5fbee49e01]::expand::MacroExpander>::fully_expand_fragment
  15:     0x7ffe153e80c7 - <rustc_expand[f9fe2c5fbee49e01]::expand::MacroExpander>::expand_crate
  16:     0x7ffe14776ee5 - rustc_interface[d38a371e72ccadf5]::util::commit_date_str
  17:     0x7ffe1476cec7 - <rustc_interface[d38a371e72ccadf5]::passes::LintStoreExpandImpl as rustc_expand[f9fe2c5fbee49e01]::base::LintStoreExpand>::pre_expansion_lint
  18:     0x7ffe1476146b - <rustc_interface[d38a371e72ccadf5]::queries::Queries>::expansion
  19:     0x7ffe14735944 - <unknown>
  20:     0x7ffe1474e107 - rustc_driver[39d376d6076eb2]::args::arg_expand_all
  21:     0x7ffe14737469 - <unknown>
  22:     0x7ffe147383ed - <rustc_middle[f080ea4a7cc158b5]::ty::SymbolName as core[1f2b1784ea6e9a42]::fmt::Display>::fmt
  23:     0x7ffe2881f02c - std::sys::windows::thread::Thread::new::hdddbeea900b2c6ad
  24:     0x7ffe8ceb54e0 - BaseThreadInitThunk
  25:     0x7ffe8e74485b - RtlUserThreadStart

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 (c2f428d2f 2022-07-14) running on x86_64-pc-windows-msvc

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
   Compiling bytes v0.4.12
   Compiling rand_core v0.3.1
error: could not compile `time`
warning: build failed, waiting for other jobs to finish...
[DELL@Dell-Micro-PC agent (84-optimize-querying-dnscache)]$ rustc --version --verbose
rustc 1.64.0-nightly (c2f428d2f 2022-07-14)
binary: rustc
commit-hash: c2f428d2f3340a0e7d995f4726223db91b93704c
commit-date: 2022-07-14
host: x86_64-pc-windows-msvc
release: 1.64.0-nightly
LLVM version: 14.0.6
[DELL@Dell-Micro-PC agent (84-optimize-querying-dnscache)]$


@dilawar dilawar added 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. labels Jul 15, 2022
@dilawar
Copy link
Author

dilawar commented Jul 15, 2022

Looks like a duplicate of #99271

@dilawar dilawar closed this as completed Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant