Fix warnings for unused attributes

This commit is contained in:
Manish Goregaokar 2016-01-07 12:06:16 +05:30
parent 55a0187b7d
commit f27cfdb51a
2 changed files with 2 additions and 0 deletions

View File

@ -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) {

View File

@ -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) {