Skip to content

Commit 70e9bc2

Browse files
committed
Unify syntax (all to @eval_always)
1 parent 62976a7 commit 70e9bc2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_lint/src/internal.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ declare_tool_lint! {
430430
Deny,
431431
"prevent creation of diagnostics which cannot be translated",
432432
report_in_external_macro: true,
433-
eval_always: true
433+
@eval_always = true
434434
}
435435

436436
declare_tool_lint! {
@@ -444,7 +444,7 @@ declare_tool_lint! {
444444
Deny,
445445
"prevent diagnostic creation outside of `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls",
446446
report_in_external_macro: true,
447-
eval_always: true
447+
@eval_always = true
448448
}
449449

450450
declare_lint_pass!(Diagnostics => [UNTRANSLATABLE_DIAGNOSTIC, DIAGNOSTIC_OUTSIDE_OF_IMPL]);

compiler/rustc_lint_defs/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -910,14 +910,14 @@ macro_rules! declare_tool_lint {
910910
$(#[$attr:meta])* $vis:vis $tool:ident ::$NAME:ident, $Level:ident, $desc:expr,
911911
report_in_external_macro: $rep:expr
912912
$(, @feature_gate = $gate:ident;)?
913-
$(, eval_always: $eval_always: literal)?
913+
$(, @eval_always = $eval_always: literal)?
914914
) => (
915915
$crate::declare_tool_lint!{$(#[$attr])* $vis $tool::$NAME, $Level, $desc, $rep $(, @feature_gate = $gate;)?}
916916
);
917917
(
918918
$(#[$attr:meta])* $vis:vis $tool:ident ::$NAME:ident, $Level:ident, $desc:expr,
919919
$external:expr
920-
$(, @eval_always: $eval_always: literal)?
920+
$(, @eval_always = $eval_always: literal)?
921921
$(, @feature_gate = $gate:ident;)?
922922
) => (
923923
$(#[$attr])*

0 commit comments

Comments
 (0)