Rustanalyzer's type hints stop working after I use the questionmark operator

When I use the ? operator rust-analyzer stops showing typehints and autocompletions for the variable where it is used on.

I'm using neovim as my editor and these are the versions of rustc and rust-analyzer:

rustc 1.92.0 (ded5c06cf 2025-12-08)
rust-analyzer 0.3.1631-standalone

Perhaps you have a corrupted sysroot. Try: rustup component remove rust-src then rustup component install rust-src.

1 Like

I found it. I had an old version of rust-analyzer that was coming from the mason.nvim. So it was not using the latest version installed by rustup.

1 Like