mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
Unify syntax (all to @eval_always)
This commit is contained in:
parent
637d5cc56f
commit
8a40884e1c
@ -430,7 +430,7 @@ declare_tool_lint! {
|
||||
Deny,
|
||||
"prevent creation of diagnostics which cannot be translated",
|
||||
report_in_external_macro: true,
|
||||
eval_always: true
|
||||
@eval_always = true
|
||||
}
|
||||
|
||||
declare_tool_lint! {
|
||||
@ -444,7 +444,7 @@ declare_tool_lint! {
|
||||
Deny,
|
||||
"prevent diagnostic creation outside of `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls",
|
||||
report_in_external_macro: true,
|
||||
eval_always: true
|
||||
@eval_always = true
|
||||
}
|
||||
|
||||
declare_lint_pass!(Diagnostics => [UNTRANSLATABLE_DIAGNOSTIC, DIAGNOSTIC_OUTSIDE_OF_IMPL]);
|
||||
|
@ -910,14 +910,14 @@ macro_rules! declare_tool_lint {
|
||||
$(#[$attr:meta])* $vis:vis $tool:ident ::$NAME:ident, $Level:ident, $desc:expr,
|
||||
report_in_external_macro: $rep:expr
|
||||
$(, @feature_gate = $gate:ident;)?
|
||||
$(, eval_always: $eval_always: literal)?
|
||||
$(, @eval_always = $eval_always: literal)?
|
||||
) => (
|
||||
$crate::declare_tool_lint!{$(#[$attr])* $vis $tool::$NAME, $Level, $desc, $rep $(, @feature_gate = $gate;)?}
|
||||
);
|
||||
(
|
||||
$(#[$attr:meta])* $vis:vis $tool:ident ::$NAME:ident, $Level:ident, $desc:expr,
|
||||
$external:expr
|
||||
$(, @eval_always: $eval_always: literal)?
|
||||
$(, @eval_always = $eval_always: literal)?
|
||||
$(, @feature_gate = $gate:ident;)?
|
||||
) => (
|
||||
$(#[$attr])*
|
||||
|
Loading…
Reference in New Issue
Block a user