File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
rust-analyzer/tests/slow-tests Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ fn sourcegen_parser_tests() {
22
22
}
23
23
// ok is never actually read, but it needs to be specified to create a Test in existing_tests
24
24
let existing = existing_tests ( & tests_dir, true ) ;
25
- for t in existing. keys ( ) . filter ( |& t| !tests. contains_key ( t) ) {
25
+ if let Some ( t ) = existing. keys ( ) . find ( |& t| !tests. contains_key ( t) ) {
26
26
panic ! ( "Test is deleted: {t}" ) ;
27
27
}
28
28
Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ impl TidyDocs {
379
379
)
380
380
}
381
381
382
- for path in self . contains_fixme {
382
+ if let Some ( path) = self . contains_fixme . first ( ) {
383
383
panic ! ( "FIXME doc in a fully-documented crate: {}" , path. display( ) )
384
384
}
385
385
}
You can’t perform that action at this time.
0 commit comments