Skip to content

Commit d3ab634

Browse files
authoredNov 2, 2021
Rollup merge of rust-lang#90354 - xFrednet:00000-lets-deploy-clippy-docs, r=Mark-Simulacrum
Document clippy on nightly-rustc Adding Clippy's docs to nightly-rustc, based on commit 01cf0bd. This PR only adds `clippy_utils` to the documentation. I've decided to only document one crate for now, as `clippy_lints` etc. contain very specific and undocumented functions which aren't really reusable. I'm guessing that they would mostly clutter up the search results with little benefit. `./x.py --stage 1 doc src/tools/clippy` if working fine now after the help that ``````@jyn514`````` and ``````@ehuss`````` have provided. A big THANK YOU to them!
2 parents f2334d6 + 01e441f commit d3ab634

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/bootstrap/builder.rs

+1
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ impl<'a> Builder<'a> {
482482
doc::RustByExample,
483483
doc::RustcBook,
484484
doc::CargoBook,
485+
doc::Clippy,
485486
doc::EmbeddedBook,
486487
doc::EditionGuide,
487488
),

‎src/bootstrap/doc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ tool_doc!(
755755
"src/tools/rustfmt",
756756
["rustfmt-nightly", "rustfmt-config_proc_macro"],
757757
);
758+
tool_doc!(Clippy, "clippy", "src/tools/clippy", ["clippy_utils"]);
758759

759760
#[derive(Ord, PartialOrd, Debug, Copy, Clone, Hash, PartialEq, Eq)]
760761
pub struct ErrorIndex {

0 commit comments

Comments
 (0)