-//! FIXME: write short doc here
+//! Various diagnostics for expressions that are collected together in one pass
+//! through the body using inference results: mismatched arg counts, missing
+//! fields, etc.
use std::sync::Arc;
-use std::{
- collections::HashMap,
- path::{Path, PathBuf},
-};
+use std::path::{Path, PathBuf};
use xshell::{cmd, pushd, pushenv, read_file};
)
}
- let poorly_documented = ["hir_ty"];
-
- let mut has_fixmes =
- poorly_documented.iter().map(|it| (*it, false)).collect::<HashMap<&str, bool>>();
- 'outer: for path in self.contains_fixme {
- for krate in poorly_documented.iter() {
- if path.components().any(|it| it.as_os_str() == *krate) {
- has_fixmes.insert(krate, true);
- continue 'outer;
- }
- }
+ for path in self.contains_fixme {
panic!("FIXME doc in a fully-documented crate: {}", path.display())
}
-
- for (krate, has_fixme) in has_fixmes.iter() {
- if !has_fixme {
- panic!("crate {} is fully documented :tada:, remove it from the list of poorly documented crates", krate)
- }
- }
}
}