Skip to content

Commit 936f61e

Browse files
Update lint message
Co-authored-by: Guillaume Boisseau <[email protected]>
1 parent 4cab3d4 commit 936f61e

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

compiler/rustc_mir_build/messages.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ mir_build_pointer_pattern = function pointers and raw pointers not derived from
267267
268268
mir_build_privately_uninhabited = pattern `{$witness_1}` is currently uninhabited, but this variant contains private fields which may become inhabited in the future
269269
270-
mir_build_rust_2024_incompatible_pat = this pattern's semantics will change in edition 2024
270+
mir_build_rust_2024_incompatible_pat = the semantics of this pattern will change in edition 2024
271271
272272
mir_build_rustc_box_attribute_error = `#[rustc_box]` attribute used incorrectly
273273
.attributes = no other attributes may be applied

tests/ui/pattern/match_ergonomics_2024.fixed

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ struct Foo(u8);
88

99
fn main() {
1010
let &Foo(mut a) = &Foo(0);
11-
//~^ ERROR: this pattern's semantics will change in edition 2024
11+
//~^ ERROR: the semantics of this pattern will change in edition 2024
1212
a = 42;
1313

1414
let &mut Foo(mut a) = &mut Foo(0);
15-
//~^ ERROR: this pattern's semantics will change in edition 2024
15+
//~^ ERROR: the semantics of this pattern will change in edition 2024
1616
a = 42;
1717

1818
if let &&&&&Some(&_) = &&&&&Some(&0u8) {}
19-
//~^ ERROR: this pattern's semantics will change in edition 2024
19+
//~^ ERROR: the semantics of this pattern will change in edition 2024
2020

2121
if let &&&&&Some(&mut _) = &&&&&Some(&mut 0u8) {}
22-
//~^ ERROR: this pattern's semantics will change in edition 2024
22+
//~^ ERROR: the semantics of this pattern will change in edition 2024
2323

2424
if let &&&&&mut Some(&_) = &&&&&mut Some(&0u8) {}
25-
//~^ ERROR: this pattern's semantics will change in edition 2024
25+
//~^ ERROR: the semantics of this pattern will change in edition 2024
2626

2727
if let &mut Some(&mut Some(&mut Some(_))) = &mut Some(&mut Some(&mut Some(0u8))) {}
28-
//~^ ERROR: this pattern's semantics will change in edition 2024
28+
//~^ ERROR: the semantics of this pattern will change in edition 2024
2929

3030
if let &mut Some(&mut Some(&mut Some(ref mut _a))) = &mut Some(&mut Some(&mut Some(0u8))) {}
31-
//~^ ERROR: this pattern's semantics will change in edition 2024
31+
//~^ ERROR: the semantics of this pattern will change in edition 2024
3232
}

tests/ui/pattern/match_ergonomics_2024.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ struct Foo(u8);
88

99
fn main() {
1010
let Foo(mut a) = &Foo(0);
11-
//~^ ERROR: this pattern's semantics will change in edition 2024
11+
//~^ ERROR: the semantics of this pattern will change in edition 2024
1212
a = 42;
1313

1414
let Foo(mut a) = &mut Foo(0);
15-
//~^ ERROR: this pattern's semantics will change in edition 2024
15+
//~^ ERROR: the semantics of this pattern will change in edition 2024
1616
a = 42;
1717

1818
if let Some(&_) = &&&&&Some(&0u8) {}
19-
//~^ ERROR: this pattern's semantics will change in edition 2024
19+
//~^ ERROR: the semantics of this pattern will change in edition 2024
2020

2121
if let Some(&mut _) = &&&&&Some(&mut 0u8) {}
22-
//~^ ERROR: this pattern's semantics will change in edition 2024
22+
//~^ ERROR: the semantics of this pattern will change in edition 2024
2323

2424
if let Some(&_) = &&&&&mut Some(&0u8) {}
25-
//~^ ERROR: this pattern's semantics will change in edition 2024
25+
//~^ ERROR: the semantics of this pattern will change in edition 2024
2626

2727
if let Some(&mut Some(Some(_))) = &mut Some(&mut Some(&mut Some(0u8))) {}
28-
//~^ ERROR: this pattern's semantics will change in edition 2024
28+
//~^ ERROR: the semantics of this pattern will change in edition 2024
2929

3030
if let Some(&mut Some(Some(_a))) = &mut Some(&mut Some(&mut Some(0u8))) {}
31-
//~^ ERROR: this pattern's semantics will change in edition 2024
31+
//~^ ERROR: the semantics of this pattern will change in edition 2024
3232
}

tests/ui/pattern/match_ergonomics_2024.stderr

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: this pattern's semantics will change in edition 2024
1+
error: the semantics of this pattern will change in edition 2024
22
--> $DIR/match_ergonomics_2024.rs:10:9
33
|
44
LL | let Foo(mut a) = &Foo(0);
@@ -14,7 +14,7 @@ help: desugar the match ergonomics
1414
LL | let &Foo(mut a) = &Foo(0);
1515
| +
1616

17-
error: this pattern's semantics will change in edition 2024
17+
error: the semantics of this pattern will change in edition 2024
1818
--> $DIR/match_ergonomics_2024.rs:14:9
1919
|
2020
LL | let Foo(mut a) = &mut Foo(0);
@@ -25,7 +25,7 @@ help: desugar the match ergonomics
2525
LL | let &mut Foo(mut a) = &mut Foo(0);
2626
| ++++
2727

28-
error: this pattern's semantics will change in edition 2024
28+
error: the semantics of this pattern will change in edition 2024
2929
--> $DIR/match_ergonomics_2024.rs:18:12
3030
|
3131
LL | if let Some(&_) = &&&&&Some(&0u8) {}
@@ -36,7 +36,7 @@ help: desugar the match ergonomics
3636
LL | if let &&&&&Some(&_) = &&&&&Some(&0u8) {}
3737
| +++++
3838

39-
error: this pattern's semantics will change in edition 2024
39+
error: the semantics of this pattern will change in edition 2024
4040
--> $DIR/match_ergonomics_2024.rs:21:12
4141
|
4242
LL | if let Some(&mut _) = &&&&&Some(&mut 0u8) {}
@@ -47,7 +47,7 @@ help: desugar the match ergonomics
4747
LL | if let &&&&&Some(&mut _) = &&&&&Some(&mut 0u8) {}
4848
| +++++
4949

50-
error: this pattern's semantics will change in edition 2024
50+
error: the semantics of this pattern will change in edition 2024
5151
--> $DIR/match_ergonomics_2024.rs:24:12
5252
|
5353
LL | if let Some(&_) = &&&&&mut Some(&0u8) {}
@@ -58,7 +58,7 @@ help: desugar the match ergonomics
5858
LL | if let &&&&&mut Some(&_) = &&&&&mut Some(&0u8) {}
5959
| ++++++++
6060

61-
error: this pattern's semantics will change in edition 2024
61+
error: the semantics of this pattern will change in edition 2024
6262
--> $DIR/match_ergonomics_2024.rs:27:12
6363
|
6464
LL | if let Some(&mut Some(Some(_))) = &mut Some(&mut Some(&mut Some(0u8))) {}
@@ -69,7 +69,7 @@ help: desugar the match ergonomics
6969
LL | if let &mut Some(&mut Some(&mut Some(_))) = &mut Some(&mut Some(&mut Some(0u8))) {}
7070
| ++++ ++++
7171

72-
error: this pattern's semantics will change in edition 2024
72+
error: the semantics of this pattern will change in edition 2024
7373
--> $DIR/match_ergonomics_2024.rs:30:12
7474
|
7575
LL | if let Some(&mut Some(Some(_a))) = &mut Some(&mut Some(&mut Some(0u8))) {}

0 commit comments

Comments
 (0)