/// `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,
};
);
}