For some reason Rust Analyzer isn't generating a warning for undefined variables. Do I need to tweak some settings somewhere?
I'm also not getting warnings for unused variables, unimported crates, etc.
Edit: Tested this out with a new workspace. Both cargo check
and Rust Analyzer work. It reports a single intentional error. When I run cargo check
in the first workspace, it reports a lot of errors in the ~/.cargo
directory, and none in the current workspace. Perhaps a crate I am using has errors and is locking up cargo check
before it can get around to checking the files in my directory?