Skip over rust diagnostic attributes
diff --git a/syntax/attrs.rs b/syntax/attrs.rs
index 8740d3d..9ad3d51 100644
--- a/syntax/attrs.rs
+++ b/syntax/attrs.rs
@@ -101,6 +101,13 @@
}
Err(err) => return cx.push(err),
}
+ } else if attr.path.is_ident("allow")
+ || attr.path.is_ident("warn")
+ || attr.path.is_ident("deny")
+ || attr.path.is_ident("forbid")
+ {
+ // https://doc.rust-lang.org/reference/attributes/diagnostics.html#lint-check-attributes
+ continue;
}
return cx.error(attr, "unsupported attribute");
}