Closed miraclx closed 4 days ago
Hello, A fix was pushed with PR #17190 and it was released as part of today's release (version number: 0.4.1949). Can you please test it and report whether the issue is fixed for you or not? Thanks.
Sorry for the delay, yeah I just checked and I can confirm this is indeed fixed on:
rust-analyzer version: 0.3.1958-standalone (5bf2f85c8 2024-05-09)
Thank you so much!
rust-analyzer version: 0.3.1940-standalone (f216be4a0 2024-04-27)
rustc version: rustc 1.77.2 (25ef9e3d8 2024-04-09)
editor or extension: VSCode + RA v0.3.1940
relevant settings: normal
repository link (if public, optional): -
code snippet to reproduce:
This immediately produces #17124 in the form of:
Stack Trace
```console thread 'Worker' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chalk-ir-0.97.0/src/lib.rs:2730:10: index out of bounds: the len is 0 but the index is 0 stack backtrace: 0: _rust_begin_unwind 1: core::panicking::panic_fmt 2: core::panicking::panic_bounds_check 3:And when I hover over the
MY_TYPE
ident, I get the following:When I inline the type alias in this form:
Both errors go away.