Skip to content

Panic at 'index out of bounds: the len is 2 but the index is 2' #10179

@WaffleLapkin

Description

@WaffleLapkin

When editing a pacticular project I keep getting this panic message from RA (b73b321 2021-09-06 stable, VS Code, Arch Linux). Here is the error output in VS code: <gist>.

Repro:

; git clone https://github.com/WaffleLapkin/sudoku-solve.git && cd sudoku-solve && git switch --detach d57e314f70b55040698ffb60ed84e47d071c7650
; rust-analyzer --version
rust-analyzer b73b32147 2021-09-06 dev
; rust-analyzer analysis-stats .
Database loaded:     965.22ms, 68minstr (metadata 640.72ms, 1141kinstr; build 280.63ms, 633kinstr)
  crates: 1, mods: 1, decls: 17, fns: 8
Item Collection:     3.20s, 21ginstr
4/8 50% processing: newthread 'main' panicked at 'index out of bounds: the len is 2 but the index is 2', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/chalk-ir-0.70.0/src/lib.rs:2752:10
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Metadata

Metadata

Assignees

Labels

A-tytype system / type inference / traits / method resolution

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions