use syntax::source_map::{MultiSpan, ExpnKind, DesugaringKind};
use syntax::early_buffered_lints::BufferedEarlyLintId;
use syntax::edition::Edition;
-use syntax::ext::base::MacroKind;
+use syntax_expand::base::MacroKind;
use syntax::symbol::{Symbol, sym};
use syntax_pos::Span;
/// `true` if this lint is reported even inside expansions of external macros.
pub report_in_external_macro: bool,
+
+ pub is_plugin: bool,
}
impl Lint {
desc: $desc,
edition_lint_opts: None,
report_in_external_macro: $external,
+ is_plugin: false,
};
);
($vis: vis $NAME: ident, $Level: ident, $desc: expr,
desc: $desc,
edition_lint_opts: Some(($lint_edition, $crate::lint::Level::$edition_level)),
report_in_external_macro: false,
+ is_plugin: false,
};
);
}
desc: $desc,
edition_lint_opts: None,
report_in_external_macro: $external,
+ is_plugin: true,
};
);
}