diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-30 11:46:13 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-30 11:46:13 +0100 |
commit | ebfba461123928363da55e75195d76314c51fa7e (patch) | |
tree | a1eecf37856e82e6a858de330ffdec9e1a0327f5 /crates/ra_tools/src | |
parent | 733f1d8b709788225bd06f8c0aee1819db92620b (diff) | |
parent | a47bca636cec350cf29c296dafd0c1bec51cd654 (diff) |
Merge #1937
1937: Added test for check doc strings in directory crates/ r=andreevlex a=andreevlex
#1856
Co-authored-by: Alexander Andreev <[email protected]>
Diffstat (limited to 'crates/ra_tools/src')
-rw-r--r-- | crates/ra_tools/src/bin/pre-commit.rs | 2 | ||||
-rw-r--r-- | crates/ra_tools/src/boilerplate_gen.rs | 4 | ||||
-rw-r--r-- | crates/ra_tools/src/help.rs | 2 | ||||
-rw-r--r-- | crates/ra_tools/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/ra_tools/src/main.rs | 2 |
5 files changed, 11 insertions, 1 deletions
diff --git a/crates/ra_tools/src/bin/pre-commit.rs b/crates/ra_tools/src/bin/pre-commit.rs index a628f64b2..16bbf9cb2 100644 --- a/crates/ra_tools/src/bin/pre-commit.rs +++ b/crates/ra_tools/src/bin/pre-commit.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | use std::process::Command; | 3 | use std::process::Command; |
2 | 4 | ||
3 | use ra_tools::{project_root, run, run_rustfmt, Overwrite, Result}; | 5 | use ra_tools::{project_root, run, run_rustfmt, Overwrite, Result}; |
diff --git a/crates/ra_tools/src/boilerplate_gen.rs b/crates/ra_tools/src/boilerplate_gen.rs index 1d112c0af..39f1cae66 100644 --- a/crates/ra_tools/src/boilerplate_gen.rs +++ b/crates/ra_tools/src/boilerplate_gen.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | use std::{ | 3 | use std::{ |
2 | collections::BTreeMap, | 4 | collections::BTreeMap, |
3 | fs, | 5 | fs, |
@@ -282,7 +284,7 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> { | |||
282 | let output = rustfmt.wait_with_output()?; | 284 | let output = rustfmt.wait_with_output()?; |
283 | let stdout = String::from_utf8(output.stdout)?; | 285 | let stdout = String::from_utf8(output.stdout)?; |
284 | let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`"; | 286 | let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`"; |
285 | Ok(format!("// {}\n\n{}", preamble, stdout)) | 287 | Ok(format!("//! {}\n\n{}", preamble, stdout)) |
286 | } | 288 | } |
287 | 289 | ||
288 | #[derive(Deserialize, Debug)] | 290 | #[derive(Deserialize, Debug)] |
diff --git a/crates/ra_tools/src/help.rs b/crates/ra_tools/src/help.rs index 9eb4dfbe4..72dfabacd 100644 --- a/crates/ra_tools/src/help.rs +++ b/crates/ra_tools/src/help.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | pub const GLOBAL_HELP: &str = "tasks | 3 | pub const GLOBAL_HELP: &str = "tasks |
2 | 4 | ||
3 | USAGE: | 5 | USAGE: |
diff --git a/crates/ra_tools/src/lib.rs b/crates/ra_tools/src/lib.rs index 9ba23caaa..aa993a38a 100644 --- a/crates/ra_tools/src/lib.rs +++ b/crates/ra_tools/src/lib.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | mod boilerplate_gen; | 3 | mod boilerplate_gen; |
2 | 4 | ||
3 | use std::{ | 5 | use std::{ |
diff --git a/crates/ra_tools/src/main.rs b/crates/ra_tools/src/main.rs index a951ce427..161871ccf 100644 --- a/crates/ra_tools/src/main.rs +++ b/crates/ra_tools/src/main.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | mod help; | 3 | mod help; |
2 | 4 | ||
3 | use core::fmt::Write; | 5 | use core::fmt::Write; |