We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ded995 commit 1fcc9baCopy full SHA for 1fcc9ba
src/formatting.rs
@@ -88,7 +88,13 @@ fn format_project<T: FormatHandler>(
88
) {
89
Ok(krate) => krate,
90
// Surface parse error via Session (errors are merged there from report)
91
- Err(ErrorKind::ParseError) => return Ok(report),
+ Err(ErrorKind::ParseError) => {
92
+ // https://github.com/rust-lang/rustfmt/issues/3779
93
+ if ignore_path_set.is_match(&main_file) {
94
+ return Ok(FormatReport::new());
95
+ }
96
+ return Ok(report);
97
98
Err(e) => return Err(e),
99
};
100
timer = timer.done_parsing();
0 commit comments