We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e26a6f commit a2c834cCopy full SHA for a2c834c
clippy_dev/src/fmt.rs
@@ -290,11 +290,12 @@ fn run_rustfmt(context: &FmtContext) -> Result<(), Error> {
290
.filter_map(|entry| {
291
let entry = entry.expect("failed to find tests");
292
let path = entry.path();
293
-
294
if path.extension() != Some("rs".as_ref())
295
|| path
296
.components()
297
- .any(|component| component.as_os_str() == "syntax-error-recovery")
+ .rev()
+ .nth(1)
298
+ .is_some_and(|c| c.as_os_str() == "syntax-error-recovery")
299
|| entry.file_name() == "ice-3891.rs"
300
{
301
None
0 commit comments