11error: the semantics of this pattern will change in edition 2024
2- --> $DIR/match_ergonomics_2024 .rs:14:9
2+ --> $DIR/migration_lint .rs:14:9
33 |
44LL | let Foo(mut a) = &Foo(0);
55 | -^^^^^^^^^
66 | |
77 | help: desugar the match ergonomics: `&`
88 |
99note: the lint level is defined here
10- --> $DIR/match_ergonomics_2024 .rs:7:9
10+ --> $DIR/migration_lint .rs:7:9
1111 |
1212LL | #![deny(rust_2024_incompatible_pat)]
1313 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
1515error: the semantics of this pattern will change in edition 2024
16- --> $DIR/match_ergonomics_2024 .rs:18:9
16+ --> $DIR/migration_lint .rs:18:9
1717 |
1818LL | let Foo(mut a) = &mut Foo(0);
1919 | -^^^^^^^^^
2020 | |
2121 | help: desugar the match ergonomics: `&mut`
2222
2323error: the semantics of this pattern will change in edition 2024
24- --> $DIR/match_ergonomics_2024 .rs:22:12
24+ --> $DIR/migration_lint .rs:22:12
2525 |
2626LL | if let Some(&_) = &&&&&Some(&0u8) {}
2727 | -^^^^^^^
2828 | |
2929 | help: desugar the match ergonomics: `&&&&&`
3030
3131error: the semantics of this pattern will change in edition 2024
32- --> $DIR/match_ergonomics_2024 .rs:25:12
32+ --> $DIR/migration_lint .rs:25:12
3333 |
3434LL | if let Some(&mut _) = &&&&&Some(&mut 0u8) {}
3535 | -^^^^^^^^^^^
3636 | |
3737 | help: desugar the match ergonomics: `&&&&&`
3838
3939error: the semantics of this pattern will change in edition 2024
40- --> $DIR/match_ergonomics_2024 .rs:28:12
40+ --> $DIR/migration_lint .rs:28:12
4141 |
4242LL | if let Some(&_) = &&&&&mut Some(&0u8) {}
4343 | -^^^^^^^
4444 | |
4545 | help: desugar the match ergonomics: `&&&&&mut`
4646
4747error: the semantics of this pattern will change in edition 2024
48- --> $DIR/match_ergonomics_2024 .rs:31:12
48+ --> $DIR/migration_lint .rs:31:12
4949 |
5050LL | if let Some(&mut Some(Some(_))) = &mut Some(&mut Some(&mut Some(0u8))) {}
5151 | ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -56,7 +56,7 @@ LL | if let &mut Some(&mut Some(&mut Some(_))) = &mut Some(&mut Some(&mut So
5656 | ++++ ++++
5757
5858error: the semantics of this pattern will change in edition 2024
59- --> $DIR/match_ergonomics_2024 .rs:34:12
59+ --> $DIR/migration_lint .rs:34:12
6060 |
6161LL | if let Some(&mut Some(Some(_a))) = &mut Some(&mut Some(&mut Some(0u8))) {}
6262 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -67,7 +67,7 @@ LL | if let &mut Some(&mut Some(&mut Some(ref mut _a))) = &mut Some(&mut Som
6767 | ++++ ++++ +++++++
6868
6969error: the semantics of this pattern will change in edition 2024
70- --> $DIR/match_ergonomics_2024 .rs:43:9
70+ --> $DIR/migration_lint .rs:43:9
7171 |
7272LL | let Struct { a, mut b, c } = &s;
7373 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -78,20 +78,20 @@ LL | let &Struct { ref a, mut b, ref c } = &s;
7878 | + +++ +++
7979
8080warning: the semantics of this pattern will change in edition 2024
81- --> $DIR/match_ergonomics_2024 .rs:50:9
81+ --> $DIR/migration_lint .rs:50:9
8282 |
83- LL | (Some(mut _x), match_ergonomics_2024_macros ::mixed_edition_pat!(_y)) => {
84- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83+ LL | (Some(mut _x), migration_lint_macros ::mixed_edition_pat!(_y)) => {
84+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8585 |
8686note: the lint level is defined here
87- --> $DIR/match_ergonomics_2024 .rs:46:12
87+ --> $DIR/migration_lint .rs:46:12
8888 |
8989LL | #[warn(rust_2024_incompatible_pat)]
9090 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
9191help: desugar the match ergonomics
9292 |
93- LL | &(Some(mut _x), match_ergonomics_2024_macros ::mixed_edition_pat!(ref _y)) => {
94- | + +++
93+ LL | &(Some(mut _x), migration_lint_macros ::mixed_edition_pat!(ref _y)) => {
94+ | + +++
9595
9696error: aborting due to 8 previous errors; 1 warning emitted
9797
0 commit comments