aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/tidy.rs23
1 files changed, 2 insertions, 21 deletions
diff --git a/xtask/src/tidy.rs b/xtask/src/tidy.rs
index f97e751c5..82b33a7a0 100644
--- a/xtask/src/tidy.rs
+++ b/xtask/src/tidy.rs
@@ -1,7 +1,4 @@
1use std::{ 1use std::path::{Path, PathBuf};
2 collections::HashMap,
3 path::{Path, PathBuf},
4};
5 2
6use xshell::{cmd, pushd, pushenv, read_file}; 3use xshell::{cmd, pushd, pushenv, read_file};
7 4
@@ -392,25 +389,9 @@ impl TidyDocs {
392 ) 389 )
393 } 390 }
394 391
395 let poorly_documented = ["hir_ty"]; 392 for path in self.contains_fixme {
396
397 let mut has_fixmes =
398 poorly_documented.iter().map(|it| (*it, false)).collect::<HashMap<&str, bool>>();
399 'outer: for path in self.contains_fixme {
400 for krate in poorly_documented.iter() {
401 if path.components().any(|it| it.as_os_str() == *krate) {
402 has_fixmes.insert(krate, true);
403 continue 'outer;
404 }
405 }
406 panic!("FIXME doc in a fully-documented crate: {}", path.display()) 393 panic!("FIXME doc in a fully-documented crate: {}", path.display())
407 } 394 }
408
409 for (krate, has_fixme) in has_fixmes.iter() {
410 if !has_fixme {
411 panic!("crate {} is fully documented :tada:, remove it from the list of poorly documented crates", krate)
412 }
413 }
414 } 395 }
415} 396}
416 397