Skip to content

thread 'rustc' panicked at 'index out of bounds: the len is 68 but the index is 68' #80032

Closed
@Mromson

Description

@Mromson

Unfortunately, I am unable to reproduce this bug. It happened only once so far, the same code compiled a second time without issue...

Code

<unknown>

Meta

rustc --version --verbose:

rustc 1.48.0 (7eac88abb 2020-11-16)
binary: rustc
commit-hash: 7eac88abb2e57e752f3302f02be5f3ce3d7adfb4
commit-date: 2020-11-16
host: x86_64-pc-windows-msvc
release: 1.48.0
LLVM version: 11.0

Error output

$ cargo test -- --nocapture
   Compiling m_proj v0.0.0 (G:\mProj)
thread 'rustc' panicked at 'index out of bounds: the len is 68 but the index is 68', compiler\rustc_middle\src\ty\query\on_disk_cache.rs:706: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.48.0 (7eac88abb 2020-11-16) running on x86_64-pc-windows-msvc    

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental        

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

error: could not compile `m_proj`

To learn more, run the command again with --verbose.
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