1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-07-29 02:51:56 +00:00

Filter only for RustDeprecated in attrs

Previously any string-related attribute would emit a deprecation
warning!

cc 
This commit is contained in:
Alex Crichton
2018-10-03 15:44:58 -07:00
parent 84bda02bbf
commit 9eaba6e28b

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