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
@@ -440,7 +440,7 @@ lint_non_local_definitions_cargo_update = the {$macro_kind} `{$macro_name}` may
440
440
441
441
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>
442
442
443
-
lint_non_local_definitions_impl = non-local `impl` definition, they should be avoided as they go against expectation
443
+
lint_non_local_definitions_impl = non-local `impl` definition, `impl` blocks should be written at the same level as their item
444
444
.help =
445
445
move this `impl` block outside the of the current {$body_kind_descr}{$depth->
446
446
[one] `{$body_name}`
@@ -450,7 +450,7 @@ lint_non_local_definitions_impl = non-local `impl` definition, they should be av
450
450
.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
451
451
.const_anon = use a const-anon item to suppress this lint
452
452
453
-
lint_non_local_definitions_macro_rules = non-local `macro_rules!` definition, they should be avoided as they go against expectation
453
+
lint_non_local_definitions_macro_rules = non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module
454
454
.help =
455
455
remove the `#[macro_export]` or move this `macro_rules!` outside the of the current {$body_kind_descr}{$depth->
0 commit comments