about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-04-03 15:53:36 +0200
committerflip1995 <hello@philkrones.com>2019-04-03 19:18:07 +0200
commit076abfa0f30e2365f4dbb6cd941c7761157b644a (patch)
tree24fabd192e5301cd955f335bba40702d7166a71e
parent51a792d01b3af2c96850d3be9392139a592931dd (diff)
downloadrust-076abfa0f30e2365f4dbb6cd941c7761157b644a.tar.gz
rust-076abfa0f30e2365f4dbb6cd941c7761157b644a.zip
Deny internal lints on two more crates
- libfmt_macros
- librustdoc
-rw-r--r--src/libfmt_macros/lib.rs1
-rw-r--r--src/librustdoc/lib.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs
index aacd6cec565..2536121c7a3 100644
--- a/src/libfmt_macros/lib.rs
+++ b/src/libfmt_macros/lib.rs
@@ -9,6 +9,7 @@
        test(attr(deny(warnings))))]
 
 #![deny(rust_2018_idioms)]
+#![cfg_attr(not(stage0), deny(internal))]
 
 #![feature(nll)]
 #![feature(rustc_private)]
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs
index 2ebb465d53d..6cb937d9216 100644
--- a/src/librustdoc/lib.rs
+++ b/src/librustdoc/lib.rs
@@ -1,4 +1,5 @@
 #![deny(rust_2018_idioms)]
+#![cfg_attr(not(stage0), deny(internal))]
 
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
        html_playground_url = "https://play.rust-lang.org/")]