Skip to content

index out of bounds: the len is 466 but the index is 466', compiler/rustc_query_impl/src/on_disk_cache.rs:726:18 #93326

Closed
@Dushistov

Description

@Dushistov

This happens once during run cargo test specific_test, after cargo clean I can not reproduce the issue.

Meta

rustc --version --verbose:

rustc 1.59.0-beta.3 (92c92fb3c 2022-01-20)
binary: rustc
commit-hash: 92c92fb3c14a19a565aab416c4d357e0872a4408
commit-date: 2022-01-20
host: x86_64-unknown-linux-gnu
release: 1.59.0-beta.3
LLVM version: 13.0.0

Error output

thread 'rustc' panicked at 'index out of bounds: the len is 466 but the index is 466', compiler/rustc_query_impl/src/on_disk_cache.rs:726:18
note: run with `RUST_BACKTRACE=1` environment variable to display a 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.59.0-beta.3 (92c92fb3c 2022-01-20) running on x86_64-unknown-linux-gnu

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental -C link-arg=-fuse-ld=lld

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `ser::tests::test_enum::promoted[6]`
#1 [optimized_mir] optimizing MIR for `ser::tests::test_enum`
end of query stack
warning: `serde-fleece` (lib test) generated 60 warnings
error: could not compile `serde-fleece`; 60 warnings emitted

Backtrace

<backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions