Open artemexex3000 opened 9 hours ago
Panic triggers here https://github.com/rust-lang/rust-analyzer/blob/65c0b297204fcce1096ed6d6fe3f0f224563dbb8/crates/hir-ty/src/display.rs#L1055
minimal reproduction
fn main() {
struct S<T, D = ()>();
let x = S::<()>;}
The issue is our index for split_at assumes all parameters, but at that point they are stripped of the defaults so the index might not be valid
rust-analyzer version: rust-analyzer 1.82.0 (f6e511e 2024-10-15)
rustc version: rustc 1.82.0 (f6e511eec 2024-10-15)
editor or extension: vscode (code -v: 1.92.0 b1c0a14de1414fcdaa400695b4db1c0799bc3124 x64)
relevant settings:
code snippet to reproduce: