Skip to content

Commit ac2c494

Browse files
committed
Update non-local impl definition lint note rule
1 parent 9408546 commit ac2c494

File tree

2 files changed

+52
-52
lines changed

2 files changed

+52
-52
lines changed

compiler/rustc_lint/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ lint_non_local_definitions_impl = non-local `impl` definition, they should be av
443443
[one] `{$body_name}`
444444
*[other] `{$body_name}` and up {$depth} bodies
445445
}
446-
.non_local = an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
446+
.non_local = an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block and should not impact code outside of that item
447447
.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
448448
.const_anon = use a const-anon item to suppress this lint
449449

0 commit comments

Comments
 (0)