Rustup to *1.13.0-nightly (eac41469d 2016-08-30)*

This commit is contained in:
mcarton 2016-08-28 17:54:32 +02:00
parent b38a86a145
commit 3f43996aa5
No known key found for this signature in database
GPG key ID: 5E427C794CBA45E8
4 changed files with 30 additions and 22 deletions

View file

@ -21,7 +21,7 @@ use rustc::hir;
use rustc::lint::*;
use rustc::ty;
use syntax::ast;
use syntax::attr::{self, AttrMetaMethods};
use syntax::attr;
use syntax::codemap::Span;
use utils::in_macro;
@ -99,7 +99,7 @@ impl LateLintPass for MissingDoc {
let doc_hidden = self.doc_hidden() || attrs.iter().any(|attr| {
attr.check_name("doc") && match attr.meta_item_list() {
None => false,
Some(l) => attr::contains_name(&l[..], "hidden"),
Some(l) => attr::list_contains_name(&l[..], "hidden"),
}
});
self.doc_hidden_stack.push(doc_hidden);
@ -123,6 +123,7 @@ impl LateLintPass for MissingDoc {
hir::ItemStruct(..) => "a struct",
hir::ItemTrait(..) => "a trait",
hir::ItemTy(..) => "a type alias",
hir::ItemUnion(..) => "a union",
hir::ItemDefaultImpl(..) |
hir::ItemExternCrate(..) |
hir::ItemForeignMod(..) |