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
Rollup merge of rust-lang#131565 - Urgau:non_local_def-rm-deprecate, r=compiler-errors
Remove deprecation note in the `non_local_definitions` lint
This PR removes the edition deprecation note emitted by the `non_local_definitions` lint.
Specifically this part:
```
= note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <rust-lang#120363>
```
because it [didn't make the cut](rust-lang#120363 (comment)) for the 2024 edition.
`@rustbot` label +L-non_local_definitions
Copy file name to clipboardExpand all lines: compiler/rustc_lint/messages.ftl
-2
Original file line number
Diff line number
Diff line change
@@ -581,8 +581,6 @@ lint_non_glob_import_type_ir_inherent = non-glob import of `rustc_type_ir::inher
581
581
582
582
lint_non_local_definitions_cargo_update = the {$macro_kind} `{$macro_name}` may come from an old version of the `{$crate_name}` crate, try updating your dependency with `cargo update -p {$crate_name}`
583
583
584
-
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>
585
-
586
584
lint_non_local_definitions_impl = non-local `impl` definition, `impl` blocks should be written at the same level as their item
587
585
.non_local = an `impl` is never scoped, even when it is nested inside an item, as it 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`
588
586
.doctest = make this doc-test a standalone test with its own `fn main() {"{"} ... {"}"}`
Copy file name to clipboardExpand all lines: tests/rustdoc-ui/doctest/non-local-defs-impl.stdout
-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ LL | impl Trait for &Local {}
18
18
| `Trait` is not local
19
19
|
20
20
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
21
-
= 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>
= help: remove the `#[macro_export]` or make this doc-test a standalone test with its own `fn main() { ... }`
8
8
= note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute
9
-
= 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>
10
9
= note: `#[warn(non_local_definitions)]` on by default
= 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`
13
13
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
14
14
= note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
15
-
= 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>
16
15
= note: `#[warn(non_local_definitions)]` on by default
17
16
= note: this warning originates in the macro `non_local_macro::non_local_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/lint/non-local-defs/consts.stderr
-9
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ LL | impl Uto for &Test {}
15
15
|
16
16
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
17
17
= note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
18
-
= 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>
19
18
= note: `#[warn(non_local_definitions)]` on by default
20
19
21
20
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
@@ -31,7 +30,6 @@ LL | impl Uto2 for Test {}
31
30
|
32
31
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
33
32
= note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
34
-
= 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>
35
33
36
34
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
37
35
--> $DIR/consts.rs:32:5
@@ -46,7 +44,6 @@ LL | impl Uto3 for Test {}
46
44
|
47
45
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
48
46
= note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
49
-
= 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>
50
47
51
48
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
52
49
--> $DIR/consts.rs:43:5
@@ -59,7 +56,6 @@ LL | impl Test {
59
56
| `Test` is not local
60
57
|
61
58
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
62
-
= 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>
63
59
64
60
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
65
61
--> $DIR/consts.rs:50:9
@@ -78,7 +74,6 @@ LL | | };
78
74
| |_____- move the `impl` block outside of this inline constant `<unnameable>` and up 2 bodies
79
75
|
80
76
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
81
-
= 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>
82
77
83
78
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
84
79
--> $DIR/consts.rs:59:9
@@ -92,7 +87,6 @@ LL | impl Test {
92
87
|
93
88
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
94
89
= note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
95
-
= 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>
96
90
97
91
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
98
92
--> $DIR/consts.rs:69:13
@@ -106,7 +100,6 @@ LL | impl Test {}
106
100
|
107
101
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
108
102
= note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
109
-
= 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>
110
103
111
104
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
112
105
--> $DIR/consts.rs:79:9
@@ -120,7 +113,6 @@ LL | impl Uto9 for Test {}
120
113
| `Uto9` is not local
121
114
|
122
115
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
123
-
= 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>
124
116
125
117
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
126
118
--> $DIR/consts.rs:86:9
@@ -138,7 +130,6 @@ LL | | }];
138
130
| |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies
139
131
|
140
132
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
141
-
= 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>
Copy file name to clipboardExpand all lines: tests/ui/lint/non-local-defs/exhaustive-trait.stderr
-6
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ LL | impl PartialEq<()> for Dog {
10
10
| `PartialEq` is not local
11
11
|
12
12
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
13
-
= 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>
14
13
= note: `#[warn(non_local_definitions)]` on by default
15
14
16
15
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
29
-
= 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>
30
28
31
29
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
44
-
= 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>
45
42
46
43
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
59
-
= 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>
60
56
61
57
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
75
-
= 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>
76
71
77
72
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
= note: an `impl` is never scoped, even when it is nested inside an item, as it 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`
91
-
= 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>
0 commit comments