mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
never_loop
This commit is contained in:
parent
9e4f94c938
commit
6709eaba2a
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ fn sourcegen_parser_tests() {
|
|||
}
|
||||
// ok is never actually read, but it needs to be specified to create a Test in existing_tests
|
||||
let existing = existing_tests(&tests_dir, true);
|
||||
for t in existing.keys().filter(|&t| !tests.contains_key(t)) {
|
||||
if let Some(t) = existing.keys().find(|&t| !tests.contains_key(t)) {
|
||||
panic!("Test is deleted: {t}");
|
||||
}
|
||||
|
||||
|
|
|
@ -379,7 +379,7 @@ impl TidyDocs {
|
|||
)
|
||||
}
|
||||
|
||||
for path in self.contains_fixme {
|
||||
if let Some(path) = self.contains_fixme.first() {
|
||||
panic!("FIXME doc in a fully-documented crate: {}", path.display())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue