Added test for check doc strings in crates.

#1856
This commit is contained in:
Alexander Andreev
2019-09-30 11:58:53 +03:00
parent 2b69c84396
commit fdbd6bb11a
171 changed files with 419 additions and 29 deletions

View File

@@ -1,3 +1,5 @@
//! FIXME: write short doc here
use std::process::Command;
use ra_tools::{project_root, run, run_rustfmt, Overwrite, Result};

View File

@@ -1,3 +1,5 @@
//! FIXME: write short doc here
use std::{
collections::BTreeMap,
fs,
@@ -282,7 +284,7 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> {
let output = rustfmt.wait_with_output()?;
let stdout = String::from_utf8(output.stdout)?;
let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`";
Ok(format!("// {}\n\n{}", preamble, stdout))
Ok(format!("//! {}\n\n{}", preamble, stdout))
}
#[derive(Deserialize, Debug)]

View File

@@ -1,3 +1,5 @@
//! FIXME: write short doc here
pub const GLOBAL_HELP: &str = "tasks
USAGE:

View File

@@ -1,3 +1,5 @@
//! FIXME: write short doc here
mod boilerplate_gen;
use std::{

View File

@@ -1,3 +1,5 @@
//! FIXME: write short doc here
mod help;
use core::fmt::Write;