We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 536eea3 commit e6fbb5cCopy full SHA for e6fbb5c
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