提交 9191a789 编写于 作者: B Brian Anderson

Revert "Fix `missing_docs` lint for const and static."

This reverts commit 00130cff.

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
上级 39d4faf9
......@@ -1610,8 +1610,6 @@ fn check_item(&mut self, cx: &Context, it: &ast::Item) {
}
return
},
ast::ItemConst(..) => "a constant",
ast::ItemStatic(..) => "a static",
_ => return
};
......
......@@ -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() {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册