Merge pull request #19576 from chenyukang/yukang-fix-rustfmt-error
Ignore errors from rustfmt which may trigger error notification
This commit is contained in:
commit
45be9c2e7d
1 changed files with 5 additions and 1 deletions
|
|
@ -2418,7 +2418,11 @@ fn run_rustfmt(
|
|||
Ok(None)
|
||||
}
|
||||
// rustfmt panicked at lexing/parsing the file
|
||||
Some(101) if !rustfmt_not_installed && captured_stderr.starts_with("error[") => {
|
||||
Some(101)
|
||||
if !rustfmt_not_installed
|
||||
&& (captured_stderr.starts_with("error[")
|
||||
|| captured_stderr.starts_with("error:")) =>
|
||||
{
|
||||
Ok(None)
|
||||
}
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue