We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8172088 + e6fbb5c commit a18e38eCopy full SHA for a18e38e
src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs
@@ -2352,6 +2352,10 @@ fn run_rustfmt(
2352
);
2353
Ok(None)
2354
}
2355
+ // rustfmt panicked at lexing/parsing the file
2356
+ Some(101) if !rustfmt_not_installed && captured_stderr.starts_with("error[") => {
2357
+ Ok(None)
2358
+ }
2359
_ => {
2360
// Something else happened - e.g. `rustfmt` is missing or caught a signal
2361
Err(LspError::new(
0 commit comments