rust-analyzer does not show any semantic errors in emacs, such as wrong return type of a function. The only errors I see are syntax errors. If I change the language server to rls everything works fine. Is there any configuration option that I am missing?
I'm not sure about emacs config, but note that rust-analyzer by itself does not do type checking, it normally runs
cargo check or
cargo clippy on save and reports those errors.
Thanks. This explains why it suddenly worked again after running 'cargo clean'. There must have been some artefact that confused rust-analyzer.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.