mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-26 11:34:22 +03:00
Filter only for RustDeprecated
in attrs
Previously any string-related attribute would emit a deprecation warning! cc #925
This commit is contained in:
parent
84bda02bbf
commit
9eaba6e28b
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user