From 9eaba6e28b9fc0659d773067d57a661040e025ea Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 3 Oct 2018 15:44:58 -0700 Subject: [PATCH] Filter only for `RustDeprecated` in attrs Previously any string-related attribute would emit a deprecation warning! cc #925 --- crates/webidl/src/util.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/webidl/src/util.rs b/crates/webidl/src/util.rs index 1fa8ee838..0cbf684e6 100644 --- a/crates/webidl/src/util.rs +++ b/crates/webidl/src/util.rs @@ -679,6 +679,7 @@ pub fn get_rust_deprecated<'a>(ext_attrs: &Option>) _ => None, } }) + .filter(|attr| attr.lhs_identifier.0 == "RustDeprecated") .filter_map(|ident| { match ident.rhs { IdentifierOrString::String(s) => Some(s),