about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-21 11:32:54 +0000
committerbors <bors@rust-lang.org>2015-07-21 11:32:54 +0000
commit2afe47d1688726fd1e836deedaa0ad8c2ec891c7 (patch)
tree776945ffccf140ed8c0bb3266dedf751b3fb97d0
parente33b128e01e1a5a2d23abac5b88274eea5cf9059 (diff)
parent9191a7895574ec3aa5a9b84ce0008d91e32ccd6a (diff)
downloadrust-2afe47d1688726fd1e836deedaa0ad8c2ec891c7.tar.gz
rust-2afe47d1688726fd1e836deedaa0ad8c2ec891c7.zip
Auto merge of #27160 - brson:revdoc, r=huonw
This reverts commit 00130cff99f88e13fec87378bdf476cfea6aa147.

As mentioned in a regression report[1], this caused a notable amount
of breakage. Because there's a plan to mitigate[2] this type of
breakage, I'm reverting this until then.

[1]: https://internals.rust-lang.org/t/new-crater-reports-1-1-stable-vs-beta-2015-07-10-and-nightly-2015-07-10/2358
[2]: https://github.com/rust-lang/rfcs/pull/1193
-rw-r--r--src/librustc_lint/builtin.rs2
-rw-r--r--src/test/compile-fail/lint-missing-doc.rs21
2 files changed, 0 insertions, 23 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs
index e82e0d790e1..1f4014bc692 100644
--- a/src/librustc_lint/builtin.rs
+++ b/src/librustc_lint/builtin.rs
@@ -1616,8 +1616,6 @@ impl LintPass for MissingDoc {
                 }
                 return
             },
-            ast::ItemConst(..) => "a constant",
-            ast::ItemStatic(..) => "a static",
             _ => return
         };
 
diff --git a/src/test/compile-fail/lint-missing-doc.rs b/src/test/compile-fail/lint-missing-doc.rs
index 55018358861..04db6c8c8f3 100644
--- a/src/test/compile-fail/lint-missing-doc.rs
+++ b/src/test/compile-fail/lint-missing-doc.rs
@@ -149,27 +149,6 @@ pub enum PubBaz3 {
 #[doc(hidden)]
 pub fn baz() {}
 
-
-const FOO: u32 = 0;
-/// dox
-pub const FOO1: u32 = 0;
-#[allow(missing_docs)]
-pub const FOO2: u32 = 0;
-#[doc(hidden)]
-pub const FOO3: u32 = 0;
-pub const FOO4: u32 = 0; //~ ERROR: missing documentation for a const
-
-
-static BAR: u32 = 0;
-/// dox
-pub static BAR1: u32 = 0;
-#[allow(missing_docs)]
-pub static BAR2: u32 = 0;
-#[doc(hidden)]
-pub static BAR3: u32 = 0;
-pub static BAR4: u32 = 0; //~ ERROR: missing documentation for a static
-
-
 mod internal_impl {
     /// dox
     pub fn documented() {}