]> git.lizzy.rs Git - rust.git/commitdiff
Add last remaining module docstring
authorFlorian Diebold <flodiebold@gmail.com>
Sat, 22 May 2021 14:39:19 +0000 (16:39 +0200)
committerFlorian Diebold <flodiebold@gmail.com>
Sat, 22 May 2021 14:39:56 +0000 (16:39 +0200)
crates/hir_ty/src/diagnostics/expr.rs
xtask/src/tidy.rs

index b9a69b79c81d61f66ffdabb3b922af43e42d6bda..53c4ee9da9aac613260c2529f5661447b6ebaebc 100644 (file)
@@ -1,4 +1,6 @@
-//! 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;
 
index f97e751c58a086720cf99b3d63798563ec0d731b..82b33a7a09c1a3846022a729edb9193a372b7065 100644 (file)
@@ -1,7 +1,4 @@
-use std::{
-    collections::HashMap,
-    path::{Path, PathBuf},
-};
+use std::path::{Path, PathBuf};
 
 use xshell::{cmd, pushd, pushenv, read_file};
 
@@ -392,25 +389,9 @@ fn finish(self) {
             )
         }
 
-        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)
-            }
-        }
     }
 }