From f27cfdb51a50c92031f3432ed98eb0ba54cb740e Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Thu, 7 Jan 2016 12:06:16 +0530 Subject: [PATCH] Fix warnings for unused attributes --- src/lib.rs | 1 + src/misc.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 8227be92543..45f47fe3d63 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -77,6 +77,7 @@ mod reexport { pub use syntax::ast::{Name, NodeId}; } +#[allow(unused_attributes)] #[plugin_registrar] #[rustfmt_skip] pub fn plugin_registrar(reg: &mut Registry) { diff --git a/src/misc.rs b/src/misc.rs index 4cee123909b..a8fabaa3fcf 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -365,6 +365,7 @@ impl LintPass for UsedUnderscoreBinding { } impl LateLintPass for UsedUnderscoreBinding { + #[allow(unused_attributes)] #[rustfmt_skip] fn check_expr(&mut self, cx: &LateContext, expr: &Expr) { if in_attributes_expansion(cx, expr) {