Skip to content

Commit 0c69265

Browse files
committed
Avoid awkward capital letter in a capital free messages
1 parent 21b1c52 commit 0c69265

10 files changed

+50
-50
lines changed

compiler/rustc_lint/messages.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ lint_non_local_definitions_impl = non-local `impl` definition, `impl` blocks sho
447447
*[other] `{$body_name}` and up {$depth} bodies
448448
}
449449
.without_trait = methods and assoc const are still usable outside the current expression, only `impl Local` and `impl dyn Local` are local and only if the `Local` type is at the same nesting as the `impl` block
450-
.with_trait = an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
450+
.with_trait = an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
451451
.bounds = `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
452452
.exception = anon-const (`const _: () = {"{"} ... {"}"}`) at top-level module and anon-const at the same nesting as the trait or type are consider to be transparent regarding the nesting level
453453
.const_anon = use a const-anon item to suppress this lint

tests/ui/lint/non-local-defs/cargo-update.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | non_local_macro::non_local_impl!(LocalStruct);
66
|
77
= help: move this `impl` block outside the of the current constant `_IMPL_DEBUG`
88
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
9-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
9+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
1010
= note: the macro `non_local_macro::non_local_impl` may come from an old version of the `non_local_macro` crate, try updating your dependency with `cargo update -p non_local_macro`
1111
= note: anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type are consider to be transparent regarding the nesting level
1212
= note: 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>

tests/ui/lint/non-local-defs/consts.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | impl Uto for &Test {}
99
|
1010
= help: move this `impl` block outside the of the current constant `Z`
1111
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
12-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
12+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
1313
= note: anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type are consider to be transparent regarding the nesting level
1414
= note: 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>
1515
= note: `#[warn(non_local_definitions)]` on by default
@@ -22,7 +22,7 @@ LL | impl Uto2 for Test {}
2222
|
2323
= help: move this `impl` block outside the of the current static `A`
2424
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
25-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
25+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
2626
= note: anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type are consider to be transparent regarding the nesting level
2727
= note: 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>
2828

@@ -34,7 +34,7 @@ LL | impl Uto3 for Test {}
3434
|
3535
= help: move this `impl` block outside the of the current constant `B`
3636
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
37-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
37+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
3838
= note: anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type are consider to be transparent regarding the nesting level
3939
= note: 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>
4040

@@ -86,7 +86,7 @@ LL | impl Uto9 for Test {}
8686
|
8787
= help: move this `impl` block outside the of the current closure `<unnameable>` and up 2 bodies
8888
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
89-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
89+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
9090
= note: 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>
9191

9292
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
@@ -97,7 +97,7 @@ LL | impl Uto10 for Test {}
9797
|
9898
= help: move this `impl` block outside the of the current constant expression `<unnameable>` and up 2 bodies
9999
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
100-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
100+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
101101
= note: 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>
102102

103103
warning: 8 warnings emitted

tests/ui/lint/non-local-defs/exhaustive-trait.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | | }
1111
|
1212
= help: move this `impl` block outside the of the current function `main`
1313
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
14-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
14+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
1515
= note: 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>
1616
= note: `#[warn(non_local_definitions)]` on by default
1717

@@ -28,7 +28,7 @@ LL | | }
2828
|
2929
= help: move this `impl` block outside the of the current function `main`
3030
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
31-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
31+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
3232
= note: 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>
3333

3434
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
@@ -44,7 +44,7 @@ LL | | }
4444
|
4545
= help: move this `impl` block outside the of the current function `main`
4646
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
47-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
47+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
4848
= note: 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>
4949

5050
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
@@ -60,7 +60,7 @@ LL | | }
6060
|
6161
= help: move this `impl` block outside the of the current function `main`
6262
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
63-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
63+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
6464
= note: 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>
6565

6666
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
@@ -76,7 +76,7 @@ LL | | }
7676
|
7777
= help: move this `impl` block outside the of the current function `main`
7878
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
79-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
79+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
8080
= note: 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>
8181

8282
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
@@ -92,7 +92,7 @@ LL | | }
9292
|
9393
= help: move this `impl` block outside the of the current function `main`
9494
= note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type
95-
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl`
95+
= note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
9696
= note: 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>
9797

9898
warning: 6 warnings emitted

0 commit comments

Comments
 (0)