You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_lint/messages.ftl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -451,7 +451,7 @@ lint_non_local_definitions_cargo_update = the {$macro_kind} `{$macro_name}` may
451
451
452
452
lint_non_local_definitions_deprecation = this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
453
453
454
-
lint_non_local_definitions_impl = non-local `impl` definition, they should be avoided as they go against expectation
454
+
lint_non_local_definitions_impl = non-local `impl` definition, `impl` blocks should be written at the same level as their item
455
455
.help =
456
456
move this `impl` block outside the of the current {$body_kind_descr}{$depth->
457
457
[one] `{$body_name}`
@@ -461,7 +461,7 @@ lint_non_local_definitions_impl = non-local `impl` definition, they should be av
461
461
.exception = one exception to the rule are anon-const (`const _: () = {"{"} ... {"}"}`) at top-level module and anon-const at the same nesting as the trait or type
462
462
.const_anon = use a const-anon item to suppress this lint
463
463
464
-
lint_non_local_definitions_macro_rules = non-local `macro_rules!` definition, they should be avoided as they go against expectation
464
+
lint_non_local_definitions_macro_rules = non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module
465
465
.help =
466
466
remove the `#[macro_export]` or move this `macro_rules!` outside the of the current {$body_kind_descr}{$depth->
0 commit comments