Closed
Description
I've written a tool that walks the AST and resolves all exprs, collecting the types. I've tested this on other big projects in debug mode (notably rustfmt) and it works fine. Running it on rust-analyzer itself causes it to panic on line 206 in ide/src/rename.rs
with Missed RPIT in `insert_inference_vars_for_rpit`
.
rust-analyzer/crates/ide/src/rename.rs
Lines 204 to 208 in dd2354c
The error is coming from here:
rust-analyzer/crates/hir-ty/src/infer.rs
Lines 980 to 982 in dd2354c
Not sure how to reproduce this with a test or code action. No issues in release mode since never!
doesn't show up without debug assertions.