Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 11.0.0, Qt Creator 12.0.2, Qt Creator 13.0.0, Qt Creator 14.0.0
-
None
Description
You can apparently enable clippy(lints) support by apparently supplying(in vscode it's configured via setting "rust-analyzer.checkOnSave.command": "clippy")
{ "checkOnSave":
, "check": { "command": "clippy" } }
In options. And this seems to work, as creator popup says "cargo clippy", instead of "cargo check", which is exactly how clippy in rust-analyzer is supposed to be invoked. However, i get
LanguageClient rust for rust: Error: cargo check failed
In my general log, and no lints are displayed. Warnings are displayed as normal.
Minimal example to reproduce this is
// code placeholder #![warn(clippy::all)] fn find(s: &str, f: impl Fn(char) -> bool) -> usize { s.find(f).unwrap_or_else(|| s.len()) } fn main() {}
Should warn about "unwrap_or_else"
You can check that by manually running cargo clippy.