Merge pull request #926 from alexcrichton/fix-warnings

Filter only for `RustDeprecated` in attrs
This commit is contained in:
Nick Fitzgerald 2018-10-03 16:33:46 -07:00 committed by GitHub
commit 0b736c7ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,6 +679,7 @@ pub fn get_rust_deprecated<'a>(ext_attrs: &Option<ExtendedAttributeList<'a>>)
_ => None,
}
})
.filter(|attr| attr.lhs_identifier.0 == "RustDeprecated")
.filter_map(|ident| {
match ident.rhs {
IdentifierOrString::String(s) => Some(s),