about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-01-21 22:51:58 -0500
committerJoshua Nelson <jyn514@gmail.com>2021-01-21 23:05:52 -0500
commit0797ffec09c79d99943cb95b5b455c0d2278ea2f (patch)
treedc9937e4ab0fe990555b47007ff14bc91f9973ad /src/bootstrap
parenta194881991e57c6533490aff4c2d536d5569c514 (diff)
downloadrust-0797ffec09c79d99943cb95b5b455c0d2278ea2f.tar.gz
rust-0797ffec09c79d99943cb95b5b455c0d2278ea2f.zip
Deny internal lints for rustdoc
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/check.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index c19bb536ce8..6626fead774 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -320,6 +320,13 @@ macro_rules! tool_check_step {
                     cargo.arg("--all-targets");
                 }
 
+                // Enable internal lints for clippy and rustdoc
+                // NOTE: this intentionally doesn't enable lints for any other tools,
+                // see https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
+                if $path == "src/tools/rustdoc" || $path == "src/tools/clippy" {
+                    cargo.rustflag("-Zunstable-options");
+                }
+
                 builder.info(&format!(
                     "Checking stage{} {} artifacts ({} -> {})",
                     builder.top_stage,