mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Add last remaining module docstring
This commit is contained in:
parent
a99de65573
commit
a88c7c04d2
2 changed files with 5 additions and 22 deletions
|
@ -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;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
use std::{
|
use std::path::{Path, PathBuf};
|
||||||
collections::HashMap,
|
|
||||||
path::{Path, PathBuf},
|
|
||||||
};
|
|
||||||
|
|
||||||
use xshell::{cmd, pushd, pushenv, read_file};
|
use xshell::{cmd, pushd, pushenv, read_file};
|
||||||
|
|
||||||
|
@ -392,25 +389,9 @@ impl TidyDocs {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
let poorly_documented = ["hir_ty"];
|
for path in self.contains_fixme {
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
panic!("FIXME doc in a fully-documented crate: {}", path.display())
|
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue