Fix warnings for unused attributes
This commit is contained in:
@@ -77,6 +77,7 @@ mod reexport {
|
|||||||
pub use syntax::ast::{Name, NodeId};
|
pub use syntax::ast::{Name, NodeId};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_attributes)]
|
||||||
#[plugin_registrar]
|
#[plugin_registrar]
|
||||||
#[rustfmt_skip]
|
#[rustfmt_skip]
|
||||||
pub fn plugin_registrar(reg: &mut Registry) {
|
pub fn plugin_registrar(reg: &mut Registry) {
|
||||||
|
|||||||
@@ -365,6 +365,7 @@ impl LintPass for UsedUnderscoreBinding {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl LateLintPass for UsedUnderscoreBinding {
|
impl LateLintPass for UsedUnderscoreBinding {
|
||||||
|
#[allow(unused_attributes)]
|
||||||
#[rustfmt_skip]
|
#[rustfmt_skip]
|
||||||
fn check_expr(&mut self, cx: &LateContext, expr: &Expr) {
|
fn check_expr(&mut self, cx: &LateContext, expr: &Expr) {
|
||||||
if in_attributes_expansion(cx, expr) {
|
if in_attributes_expansion(cx, expr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user