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

ICE on nightly #99314

Closed
the-emerald opened this issue Jul 16, 2022 · 2 comments
Closed

ICE on nightly #99314

the-emerald opened this issue Jul 16, 2022 · 2 comments
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

@the-emerald
Copy link

Code

cargo new ice-repro && cd ice-repro

[package]
name = "ice-repro"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
axum = "0.5.12"
sea-orm = { version = "0.9.0", features = ["sqlx-postgres", "runtime-tokio-rustls", "macros"] }
tokio = { version = "1.20.0", features = ["full"] }
dotenv = "0.15.0"
tracing-subscriber = "0.3.14"
anyhow = "1.0.58"
tower = "0.4.13"
ethers = "0.14.0"
tracing = "0.1.35"
erc-nft-metadata = { version = "0.1.0", features = ["serde"] }

cargo +nightly check

Meta

This does not ICE on stable nor beta.
rustc --version --verbose

rustc 1.62.0 (a8314ef7d 2022-06-27)
binary: rustc
commit-hash: a8314ef7d0ec7b75c336af2c9857bfaf43002bfc
commit-date: 2022-06-27
host: x86_64-unknown-linux-gnu
release: 1.62.0
LLVM version: 14.0.5

rustc +beta --version --verbose

rustc 1.63.0-beta.5 (93ef0cd7f 2022-07-10)
binary: rustc
commit-hash: 93ef0cd7fd86d3d05cee131070a8a2cb45f3efab
commit-date: 2022-07-10
host: x86_64-unknown-linux-gnu
release: 1.63.0-beta.5
LLVM version: 14.0.5

rustc +nightly--version --verbose:

rustc 1.64.0-nightly (23e21bdd2 2022-07-15)
binary: rustc
commit-hash: 23e21bdd25026e2839ebe946c2a937c1904887d2
commit-date: 2022-07-15
host: x86_64-unknown-linux-gnu
release: 1.64.0-nightly
LLVM version: 14.0.6

Error output

   Compiling proc-macro2 v1.0.40
   Compiling quote v1.0.20
   Compiling unicode-ident v1.0.2
   Compiling syn v1.0.98
   Compiling libc v0.2.126
   Compiling serde_derive v1.0.139
   Compiling serde v1.0.139
   Compiling version_check v0.9.4
    Checking cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling typenum v1.15.0
   Compiling memchr v2.5.0
    Checking once_cell v1.13.0
   Compiling futures-core v0.3.21
    Checking subtle v2.4.1
   Compiling cc v1.0.73
   Compiling log v0.4.17
   Compiling futures-channel v0.3.21
   Compiling serde_json v1.0.82
   Compiling radium v0.7.0
    Checking itoa v1.0.2
    Checking pin-project-lite v0.2.9
   Compiling crunchy v0.2.2
    Checking smallvec v1.9.0
    Checking byteorder v1.4.3
   Compiling unicode-segmentation v1.9.0
    Checking scopeguard v1.1.0
   Compiling parking_lot_core v0.9.3
   Compiling rustls v0.20.6
   Compiling futures-task v0.3.21
    Checking futures-sink v0.3.21
   Compiling tiny-keccak v2.0.2
    Checking base64ct v1.0.1
    Checking cpufeatures v0.2.2
    Checking ppv-lite86 v0.2.16
   Compiling futures-util v0.3.21
    Checking ryu v1.0.10
   Compiling rust_decimal v1.25.0
   Compiling rustversion v1.0.8
    Checking futures-io v0.3.21
    Checking slab v0.4.6
    Checking zeroize v1.5.6
    Checking pin-utils v0.1.0
    Checking arrayvec v0.7.2
   Compiling httparse v1.7.1
    Checking const-oid v0.9.0
    Checking spin v0.5.2
    Checking untrusted v0.7.1
    Checking tap v1.0.1
    Checking rustc-hex v2.1.0
   Compiling camino v1.0.9
   Compiling semver v1.0.12
    Checking funty v2.0.0
    Checking matches v0.1.9
    Checking static_assertions v1.1.0
    Checking tinyvec_macros v0.1.0
    Checking keccak v0.1.2
   Compiling hex v0.4.3
    Checking byte-slice-cast v1.2.1
    Checking percent-encoding v2.1.0
    Checking fnv v1.0.7
    Checking base16ct v0.1.1
    Checking unicode-bidi v0.3.8
    Checking lazy_static v1.4.0
   Compiling encoding_rs v0.8.31
    Checking regex-syntax v0.6.27
   Compiling parking_lot_core v0.8.5
    Checking tower-service v0.3.2
   Compiling base64 v0.13.0
    Checking try-lock v0.2.3
   Compiling crossbeam-utils v0.8.10
    Checking byte-tools v0.3.1
    Checking httpdate v1.0.2
   Compiling async-trait v0.1.56
    Checking either v1.7.0
    Checking mime v0.3.16
   Compiling eyre v0.6.8
    Checking convert_case v0.5.0
    Checking unicode-xid v0.2.3
   Compiling crossbeam-queue v0.3.5
    Checking opaque-debug v0.2.3
    Checking fake-simd v0.1.2
   Compiling time-macros v0.2.4
    Checking ipnet v2.5.0
    Checking base58 v0.1.0
    Checking bech32 v0.7.3
   Compiling indenter v0.3.3
   Compiling minimal-lexical v0.2.1
    Checking base64 v0.12.3
   Compiling same-file v1.0.6
    Checking opaque-debug v0.3.0
    Checking bitflags v1.3.2
   Compiling unicode_categories v0.1.1
   Compiling crc-catalog v2.1.0
   Compiling dunce v1.0.2
    Checking bs58 v0.4.0
    Checking radium v0.3.0
   Compiling num_threads v0.1.6
   Compiling paste v1.0.7
   Compiling uuid v1.1.2
   Compiling event-listener v2.5.2
   Compiling whoami v1.2.1
    Checking futures-timer v3.0.2
   Compiling dotenv v0.15.0
    Checking tower-layer v0.3.1
    Checking http-range-header v0.3.0
   Compiling anyhow v1.0.58
    Checking aliasable v0.1.3
    Checking stable_deref_trait v1.2.0
    Checking bytemuck v1.10.0
    Checking matchit v0.5.0
    Checking ansi_term v0.12.1
    Checking sync_wrapper v0.1.1
   Compiling instant v0.1.12
    Checking tracing-core v0.1.28
    Checking thread_local v1.1.4
    Checking fxhash v0.2.1
   Compiling generic-array v0.14.5
   Compiling ahash v0.7.6
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling lock_api v0.4.7
   Compiling num-traits v0.2.15
   Compiling num-integer v0.1.45
   Compiling indexmap v1.9.1
   Compiling tokio v1.20.0
   Compiling num-bigint v0.4.3
   Compiling heck v0.4.0
   Compiling heck v0.3.3
    Checking der v0.6.0
    Checking wyz v0.5.0
    Checking tinyvec v1.6.0
    Checking form_urlencoded v1.0.1
    Checking sharded-slab v0.1.4
    Checking block-padding v0.1.5
    Checking itertools v0.10.3
   Compiling rustls-pemfile v1.0.0
   Compiling walkdir v2.3.2
   Compiling ring v0.16.20
   Compiling crc v3.0.0
    Checking bitvec v0.17.4
    Checking rgb v0.8.33
    Checking hashers v1.0.1
   Compiling tracing v0.1.35
    Checking want v0.3.0
    Checking tracing-log v0.1.3
   Compiling uint v0.9.3
    Checking spki v0.6.0
    Checking bitvec v1.0.1
    Checking unicode-normalization v0.1.21
    Checking aho-corasick v0.7.18
    Checking nom v7.1.1
    Checking tracing-subscriber v0.3.14
   Compiling getrandom v0.2.7
   Compiling mio v0.8.4
   Compiling socket2 v0.4.4
   Compiling num_cpus v1.13.1
   Compiling dirs-sys v0.3.7
   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
stack backtrace:
   0:     0x7f870079d930 - std::backtrace_rs::backtrace::libunwind::trace::hc933fa0cb8627706
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7f870079d930 - std::backtrace_rs::backtrace::trace_unsynchronized::h821571732dd332a1
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f870079d930 - std::sys_common::backtrace::_print_fmt::h557d50ac4a63aebc
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f870079d930 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h76b8147c2bdde75b
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:45:22
    Checking signal-hook-registry v1.4.0
   4:     0x7f87007f6f0c - core::fmt::write::h5d8be78170c85a1a
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/fmt/mod.rs:1198:17
   5:     0x7f870078ef35 - std::io::Write::write_fmt::h506eb24e7560f644
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/io/mod.rs:1672:15
   6:     0x7f87007a05c1 - std::sys_common::backtrace::_print::h2201ccbfedce10bc
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f87007a05c1 - std::sys_common::backtrace::print::hfac17af9266b406b
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f87007a05c1 - std::panicking::default_hook::{{closure}}::h391a6c901adb4324
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:295:22
   9:     0x7f87007a0293 - std::panicking::default_hook::hba36336a5210bb57
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:314:9
  10:     0x7f8700fc8c11 - rustc_driver[ce628f6b2a67333f]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7f87007a0d96 - std::panicking::rust_panic_with_hook::hf5a9c547fa70e52e
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:702:17
  12:     0x7f87007a0be7 - std::panicking::begin_panic_handler::{{closure}}::h458eb96a30055863
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:588:13
  13:     0x7f870079de14 - std::sys_common::backtrace::__rust_end_short_backtrace::he0b6e245c28401ce
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7f87007a0912 - rust_begin_unwind
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:584:5
  15:     0x7f8700764c53 - core::panicking::panic_fmt::h9776dcd13d59b560
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/panicking.rs:142:14
  16:     0x7f8700764b92 - core::panicking::panic_bounds_check::hc49ce542f03c88ff
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/panicking.rs:84:5
  17:     0x7f87033e8eb8 - rustc_builtin_macros[555fb7b74bb18701]::format::expand_preparsed_format_args
  18:     0x7f87033e25fc - rustc_builtin_macros[555fb7b74bb18701]::format::expand_format_args_impl
  19:     0x7f8702d2325d - <rustc_expand[315316ef4f9feff3]::expand::MacroExpander>::fully_expand_fragment
  20:     0x7f8703884f8b - <rustc_expand[315316ef4f9feff3]::expand::MacroExpander>::expand_crate
  21:     0x7f87031bddd2 - <rustc_session[a00dc85a9977996c]::session::Session>::time::<core[675039967b0ce395]::result::Result<rustc_ast[5a87b50f347d23c0]::ast::Crate, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_interface[7690044e2c4491ef]::passes::configure_and_expand::{closure#1}>
  22:     0x7f87031b0bd7 - <rustc_interface[7690044e2c4491ef]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[7690044e2c4491ef]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[675039967b0ce395]::result::Result<rustc_ast[5a87b50f347d23c0]::ast::Crate, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  23:     0x7f87031a93e2 - <rustc_interface[7690044e2c4491ef]::queries::Queries>::expansion
  24:     0x7f870317275c - <rustc_interface[7690044e2c4491ef]::interface::Compiler>::enter::<rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}::{closure#2}, core[675039967b0ce395]::result::Result<core[675039967b0ce395]::option::Option<rustc_interface[7690044e2c4491ef]::queries::Linker>, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  25:     0x7f870316e9bf - rustc_span[715bcd6866f3f365]::with_source_map::<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_interface[7690044e2c4491ef]::interface::create_compiler_and_run<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#1}>
  26:     0x7f870318ac40 - rustc_interface[7690044e2c4491ef]::interface::create_compiler_and_run::<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>
  27:     0x7f870319ed72 - <scoped_tls[e6e812a5eee10b50]::ScopedKey<rustc_span[715bcd6866f3f365]::SessionGlobals>>::set::<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  28:     0x7f8703170f2f - std[ed8ee9cb5bbd555]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[7690044e2c4491ef]::util::run_in_thread_pool_with_globals<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  29:     0x7f870318b099 - <<std[ed8ee9cb5bbd555]::thread::Builder>::spawn_unchecked_<rustc_interface[7690044e2c4491ef]::util::run_in_thread_pool_with_globals<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#1} as core[675039967b0ce395]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  30:     0x7f87007aa7e3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb12c75146d360fc4
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/alloc/src/boxed.rs:1934:9
  31:     0x7f87007aa7e3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::he05a53703329061d
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/alloc/src/boxed.rs:1934:9
  32:     0x7f87007aa7e3 - std::sys::unix::thread::Thread::new::thread_start::h45088dc5029897c3
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys/unix/thread.rs:108:17
  33:     0x7f87006ba609 - start_thread
                               at /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
  34:     0x7f87005dd133 - clone
                               at /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
  35:                0x0 - <unknown>

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 (23e21bdd2 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...
Backtrace

   Compiling proc-macro2 v1.0.40
   Compiling quote v1.0.20
   Compiling unicode-ident v1.0.2
   Compiling syn v1.0.98
   Compiling libc v0.2.126
   Compiling serde_derive v1.0.139
   Compiling serde v1.0.139
   Compiling version_check v0.9.4
    Checking cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling typenum v1.15.0
   Compiling memchr v2.5.0
    Checking once_cell v1.13.0
   Compiling futures-core v0.3.21
    Checking subtle v2.4.1
   Compiling cc v1.0.73
   Compiling log v0.4.17
   Compiling futures-channel v0.3.21
    Checking itoa v1.0.2
    Checking pin-project-lite v0.2.9
   Compiling serde_json v1.0.82
   Compiling radium v0.7.0
   Compiling crunchy v0.2.2
    Checking smallvec v1.9.0
    Checking byteorder v1.4.3
    Checking scopeguard v1.1.0
   Compiling unicode-segmentation v1.9.0
   Compiling parking_lot_core v0.9.3
   Compiling rustls v0.20.6
    Checking base64ct v1.0.1
    Checking futures-sink v0.3.21
   Compiling futures-task v0.3.21
    Checking cpufeatures v0.2.2
   Compiling tiny-keccak v2.0.2
    Checking ppv-lite86 v0.2.16
   Compiling rust_decimal v1.25.0
    Checking ryu v1.0.10
   Compiling futures-util v0.3.21
    Checking pin-utils v0.1.0
    Checking arrayvec v0.7.2
    Checking zeroize v1.5.6
   Compiling rustversion v1.0.8
    Checking futures-io v0.3.21
    Checking slab v0.4.6
   Compiling spin v0.5.2
   Compiling untrusted v0.7.1
   Compiling httparse v1.7.1
    Checking const-oid v0.9.0
    Checking rustc-hex v2.1.0
   Compiling semver v1.0.12
    Checking tap v1.0.1
   Compiling camino v1.0.9
    Checking funty v2.0.0
    Checking static_assertions v1.1.0
    Checking tinyvec_macros v0.1.0
    Checking keccak v0.1.2
    Checking matches v0.1.9
    Checking byte-slice-cast v1.2.1
    Checking fnv v1.0.7
    Checking base16ct v0.1.1
    Checking percent-encoding v2.1.0
   Compiling hex v0.4.3
    Checking lazy_static v1.4.0
    Checking unicode-bidi v0.3.8
   Compiling encoding_rs v0.8.31
   Compiling regex-syntax v0.6.27
    Checking tower-service v0.3.2
   Compiling parking_lot_core v0.8.5
   Compiling base64 v0.13.0
    Checking try-lock v0.2.3
    Checking either v1.7.0
   Compiling crossbeam-utils v0.8.10
    Checking httpdate v1.0.2
   Compiling async-trait v0.1.56
    Checking byte-tools v0.3.1
    Checking unicode-xid v0.2.3
    Checking mime v0.3.16
   Compiling eyre v0.6.8
    Checking convert_case v0.5.0
    Checking opaque-debug v0.2.3
    Checking fake-simd v0.1.2
   Compiling time-macros v0.2.4
   Compiling crossbeam-queue v0.3.5
    Checking base58 v0.1.0
    Checking ipnet v2.5.0
   Compiling minimal-lexical v0.2.1
   Compiling indenter v0.3.3
   Compiling same-file v1.0.6
    Checking base64 v0.12.3
    Checking bech32 v0.7.3
    Checking bs58 v0.4.0
   Compiling crc-catalog v2.1.0
    Checking num_threads v0.1.6
   Compiling unicode_categories v0.1.1
   Compiling paste v1.0.7
   Compiling dunce v1.0.2
    Checking bitflags v1.3.2
    Checking opaque-debug v0.3.0
    Checking radium v0.3.0
   Compiling whoami v1.2.1
   Compiling event-listener v2.5.2
    Checking futures-timer v3.0.2
   Compiling uuid v1.1.2
   Compiling dotenv v0.15.0
    Checking tower-layer v0.3.1
    Checking stable_deref_trait v1.2.0
    Checking bytemuck v1.10.0
    Checking http-range-header v0.3.0
   Compiling anyhow v1.0.58
    Checking aliasable v0.1.3
    Checking ansi_term v0.12.1
    Checking matchit v0.5.0
    Checking sync_wrapper v0.1.1
   Compiling instant v0.1.12
    Checking tracing-core v0.1.28
    Checking thread_local v1.1.4
    Checking fxhash v0.2.1
   Compiling generic-array v0.14.5
   Compiling ahash v0.7.6
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling lock_api v0.4.7
   Compiling num-traits v0.2.15
   Compiling indexmap v1.9.1
   Compiling num-integer v0.1.45
   Compiling tokio v1.20.0
   Compiling num-bigint v0.4.3
   Compiling heck v0.4.0
   Compiling heck v0.3.3
    Checking der v0.6.0
    Checking wyz v0.5.0
    Checking tinyvec v1.6.0
    Checking form_urlencoded v1.0.1
    Checking sharded-slab v0.1.4
    Checking block-padding v0.1.5
   Compiling rustls-pemfile v1.0.0
    Checking itertools v0.10.3
   Compiling walkdir v2.3.2
   Compiling crc v3.0.0
   Compiling ring v0.16.20
    Checking bitvec v0.17.4
    Checking rgb v0.8.33
    Checking hashers v1.0.1
   Compiling tracing v0.1.35
    Checking want v0.3.0
    Checking tracing-log v0.1.3
   Compiling uint v0.9.3
    Checking bitvec v1.0.1
    Checking unicode-normalization v0.1.21
    Checking spki v0.6.0
    Checking aho-corasick v0.7.18
    Checking nom v7.1.1
    Checking getrandom v0.2.7
    Checking mio v0.8.4
    Checking socket2 v0.4.4
    Checking signal-hook-registry v1.4.0
    Checking num_cpus v1.13.1
    Checking time v0.1.44
    Checking dirs-sys v0.3.7
   Compiling time v0.3.11
    Checking tracing-subscriber v0.3.14
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:
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:     0x7f8f3144c930 - std::backtrace_rs::backtrace::libunwind::trace::hc933fa0cb8627706
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7f8f3144c930 - std::backtrace_rs::backtrace::trace_unsynchronized::h821571732dd332a1
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f8f3144c930 - std::sys_common::backtrace::_print_fmt::h557d50ac4a63aebc
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f8f3144c930 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h76b8147c2bdde75b
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f8f314a5f0c - core::fmt::write::h5d8be78170c85a1a
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/fmt/mod.rs:1198:17
   5:     0x7f8f3143df35 - std::io::Write::write_fmt::h506eb24e7560f644
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/io/mod.rs:1672:15
   6:     0x7f8f3144f5c1 - std::sys_common::backtrace::_print::h2201ccbfedce10bc
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:48:5
   0:     0x7fc0413c8930 - std::backtrace_rs::backtrace::libunwind::trace::hc933fa0cb8627706
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   1:     0x7fc0413c8930 - std::backtrace_rs::backtrace::trace_unsynchronized::h821571732dd332a1
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fc0413c8930 - std::sys_common::backtrace::_print_fmt::h557d50ac4a63aebc
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7fc0413c8930 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h76b8147c2bdde75b
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:45:22
   7:     0x7f8f3144f5c1 - std::sys_common::backtrace::print::hfac17af9266b406b
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f8f3144f5c1 - std::panicking::default_hook::{{closure}}::h391a6c901adb4324
    Checking pkcs8 v0.9.0
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:295:22
   9:     0x7f8f3144f293 - std::panicking::default_hook::hba36336a5210bb57
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:314:9
   4:     0x7fc041421f0c - core::fmt::write::h5d8be78170c85a1a
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/fmt/mod.rs:1198:17
   5:     0x7fc0413b9f35 - std::io::Write::write_fmt::h506eb24e7560f644
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/io/mod.rs:1672:15
   6:     0x7fc0413cb5c1 - std::sys_common::backtrace::_print::h2201ccbfedce10bc
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7fc0413cb5c1 - std::sys_common::backtrace::print::hfac17af9266b406b
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7fc0413cb5c1 - std::panicking::default_hook::{{closure}}::h391a6c901adb4324
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:295:22
   9:     0x7fc0413cb293 - std::panicking::default_hook::hba36336a5210bb57
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:314:9
  10:     0x7f8f31c77c11 - rustc_driver[ce628f6b2a67333f]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7f8f3144fd96 - std::panicking::rust_panic_with_hook::hf5a9c547fa70e52e
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:702:17
  12:     0x7f8f3144fbe7 - std::panicking::begin_panic_handler::{{closure}}::h458eb96a30055863
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:588:13
  13:     0x7f8f3144ce14 - std::sys_common::backtrace::__rust_end_short_backtrace::he0b6e245c28401ce
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7f8f3144f912 - rust_begin_unwind
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:584:5
  15:     0x7f8f31413c53 - core::panicking::panic_fmt::h9776dcd13d59b560
  10:     0x7fc041bf3c11 - rustc_driver[ce628f6b2a67333f]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/panicking.rs:142:14
  16:     0x7f8f31413b92 - core::panicking::panic_bounds_check::hc49ce542f03c88ff
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/panicking.rs:84:5
  11:     0x7fc0413cbd96 - std::panicking::rust_panic_with_hook::hf5a9c547fa70e52e
  17:     0x7f8f34097eb8 - rustc_builtin_macros[555fb7b74bb18701]::format::expand_preparsed_format_args
  18:     0x7f8f340915fc - rustc_builtin_macros[555fb7b74bb18701]::format::expand_format_args_impl
  19:     0x7f8f339d225d - <rustc_expand[315316ef4f9feff3]::expand::MacroExpander>::fully_expand_fragment
  20:     0x7f8f34533f8b - <rustc_expand[315316ef4f9feff3]::expand::MacroExpander>::expand_crate
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:702:17
  21:     0x7f8f33e6cdd2 - <rustc_session[a00dc85a9977996c]::session::Session>::time::<core[675039967b0ce395]::result::Result<rustc_ast[5a87b50f347d23c0]::ast::Crate, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_interface[7690044e2c4491ef]::passes::configure_and_expand::{closure#1}>
  12:     0x7fc0413cbbe7 - std::panicking::begin_panic_handler::{{closure}}::h458eb96a30055863
  22:     0x7f8f33e5fbd7 - <rustc_interface[7690044e2c4491ef]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[7690044e2c4491ef]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[675039967b0ce395]::result::Result<rustc_ast[5a87b50f347d23c0]::ast::Crate, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  23:     0x7f8f33e583e2 - <rustc_interface[7690044e2c4491ef]::queries::Queries>::expansion
  24:     0x7f8f33e2175c - <rustc_interface[7690044e2c4491ef]::interface::Compiler>::enter::<rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}::{closure#2}, core[675039967b0ce395]::result::Result<core[675039967b0ce395]::option::Option<rustc_interface[7690044e2c4491ef]::queries::Linker>, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:588:13
  25:     0x7f8f33e1d9bf - rustc_span[715bcd6866f3f365]::with_source_map::<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_interface[7690044e2c4491ef]::interface::create_compiler_and_run<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#1}>
  26:     0x7f8f33e39c40 - rustc_interface[7690044e2c4491ef]::interface::create_compiler_and_run::<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>
  27:     0x7f8f33e4dd72 - <scoped_tls[e6e812a5eee10b50]::ScopedKey<rustc_span[715bcd6866f3f365]::SessionGlobals>>::set::<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  28:     0x7f8f33e1ff2f - std[ed8ee9cb5bbd555]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[7690044e2c4491ef]::util::run_in_thread_pool_with_globals<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  29:     0x7f8f33e3a099 - <<std[ed8ee9cb5bbd555]::thread::Builder>::spawn_unchecked_<rustc_interface[7690044e2c4491ef]::util::run_in_thread_pool_with_globals<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#1} as core[675039967b0ce395]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  30:     0x7f8f314597e3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb12c75146d360fc4
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/alloc/src/boxed.rs:1934:9
  31:     0x7f8f314597e3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::he05a53703329061d
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/alloc/src/boxed.rs:1934:9
  32:     0x7f8f314597e3 - std::sys::unix::thread::Thread::new::thread_start::h45088dc5029897c3
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys/unix/thread.rs:108:17
  13:     0x7fc0413c8e14 - std::sys_common::backtrace::__rust_end_short_backtrace::he0b6e245c28401ce
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys_common/backtrace.rs:138:18
  14:     0x7fc0413cb912 - rust_begin_unwind
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/panicking.rs:584:5
  15:     0x7fc04138fc53 - core::panicking::panic_fmt::h9776dcd13d59b560
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/panicking.rs:142:14
  16:     0x7fc04138fb92 - core::panicking::panic_bounds_check::hc49ce542f03c88ff
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/core/src/panicking.rs:84:5
  17:     0x7fc044013eb8 - rustc_builtin_macros[555fb7b74bb18701]::format::expand_preparsed_format_args
  18:     0x7fc04400d5fc - rustc_builtin_macros[555fb7b74bb18701]::format::expand_format_args_impl
  19:     0x7fc04394e25d - <rustc_expand[315316ef4f9feff3]::expand::MacroExpander>::fully_expand_fragment
  20:     0x7fc0444aff8b - <rustc_expand[315316ef4f9feff3]::expand::MacroExpander>::expand_crate
  21:     0x7fc043de8dd2 - <rustc_session[a00dc85a9977996c]::session::Session>::time::<core[675039967b0ce395]::result::Result<rustc_ast[5a87b50f347d23c0]::ast::Crate, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_interface[7690044e2c4491ef]::passes::configure_and_expand::{closure#1}>
  22:     0x7fc043ddbbd7 - <rustc_interface[7690044e2c4491ef]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[7690044e2c4491ef]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[675039967b0ce395]::result::Result<rustc_ast[5a87b50f347d23c0]::ast::Crate, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  23:     0x7fc043dd43e2 - <rustc_interface[7690044e2c4491ef]::queries::Queries>::expansion
  24:     0x7fc043d9d75c - <rustc_interface[7690044e2c4491ef]::interface::Compiler>::enter::<rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}::{closure#2}, core[675039967b0ce395]::result::Result<core[675039967b0ce395]::option::Option<rustc_interface[7690044e2c4491ef]::queries::Linker>, rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  25:     0x7fc043d999bf - rustc_span[715bcd6866f3f365]::with_source_map::<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_interface[7690044e2c4491ef]::interface::create_compiler_and_run<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#1}>
  26:     0x7fc043db5c40 - rustc_interface[7690044e2c4491ef]::interface::create_compiler_and_run::<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>
  27:     0x7fc043dc9d72 - <scoped_tls[e6e812a5eee10b50]::ScopedKey<rustc_span[715bcd6866f3f365]::SessionGlobals>>::set::<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  28:     0x7fc043d9bf2f - std[ed8ee9cb5bbd555]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[7690044e2c4491ef]::util::run_in_thread_pool_with_globals<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>
  29:     0x7fc043db6099 - <<std[ed8ee9cb5bbd555]::thread::Builder>::spawn_unchecked_<rustc_interface[7690044e2c4491ef]::util::run_in_thread_pool_with_globals<rustc_interface[7690044e2c4491ef]::interface::run_compiler<core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>, rustc_driver[ce628f6b2a67333f]::run_compiler::{closure#1}>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#0}, core[675039967b0ce395]::result::Result<(), rustc_errors[d21ca108a24cfd08]::ErrorGuaranteed>>::{closure#1} as core[675039967b0ce395]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  30:     0x7fc0413d57e3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb12c75146d360fc4
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/alloc/src/boxed.rs:1934:9
  31:     0x7fc0413d57e3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::he05a53703329061d
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/alloc/src/boxed.rs:1934:9
  32:     0x7fc0413d57e3 - std::sys::unix::thread::Thread::new::thread_start::h45088dc5029897c3
                               at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/sys/unix/thread.rs:108:17
  33:     0x7f8f31369609 - start_thread
                               at /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
  33:     0x7fc0412e5609 - start_thread
                               at /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
    Checking generic-array v0.12.4
  34:     0x7f8f3128c133 - clone
                               at /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
  35:                0x0 - <unknown>

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 (23e21bdd2 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
  34:     0x7fc041208133 - clone
                               at /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
  35:                0x0 - <unknown>

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 (23e21bdd2 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...
error: could not compile `time`

@the-emerald the-emerald 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 16, 2022
@the-emerald
Copy link
Author

Could be duplicate of #99261

@lqd
Copy link
Member

lqd commented Jul 16, 2022

Indeed that's a duplicate of #99261, and it will be fixed soon by #99263.

In the meantime I'll close this one as a duplicate and we can keep tracking progress over there. Thanks for opening an issue!

@lqd lqd closed this as completed Jul 16, 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

2 participants