@@ -21,63 +21,79 @@ LL | let Foo(mut x) = &mut Foo(0);
2121 | help: desugar the match ergonomics: `&mut`
2222
2323error: the semantics of this pattern will change in edition 2024
24- --> $DIR/migration_lint.rs:51:9
24+ --> $DIR/migration_lint.rs:33:9
25+ |
26+ LL | let Foo(ref x) = &Foo(0);
27+ | -^^^^^^^^^
28+ | |
29+ | help: desugar the match ergonomics: `&`
30+
31+ error: the semantics of this pattern will change in edition 2024
32+ --> $DIR/migration_lint.rs:37:9
33+ |
34+ LL | let Foo(ref x) = &mut Foo(0);
35+ | -^^^^^^^^^
36+ | |
37+ | help: desugar the match ergonomics: `&mut`
38+
39+ error: the semantics of this pattern will change in edition 2024
40+ --> $DIR/migration_lint.rs:53:9
2541 |
2642LL | let Foo(&x) = &Foo(&0);
2743 | -^^^^^^
2844 | |
2945 | help: desugar the match ergonomics: `&`
3046
3147error: the semantics of this pattern will change in edition 2024
32- --> $DIR/migration_lint.rs:55 :9
48+ --> $DIR/migration_lint.rs:57 :9
3349 |
3450LL | let Foo(&mut x) = &Foo(&mut 0);
3551 | -^^^^^^^^^^
3652 | |
3753 | help: desugar the match ergonomics: `&`
3854
3955error: the semantics of this pattern will change in edition 2024
40- --> $DIR/migration_lint.rs:59 :9
56+ --> $DIR/migration_lint.rs:61 :9
4157 |
4258LL | let Foo(&x) = &mut Foo(&0);
4359 | -^^^^^^
4460 | |
4561 | help: desugar the match ergonomics: `&mut`
4662
4763error: the semantics of this pattern will change in edition 2024
48- --> $DIR/migration_lint.rs:63 :9
64+ --> $DIR/migration_lint.rs:65 :9
4965 |
5066LL | let Foo(&mut x) = &mut Foo(&mut 0);
5167 | -^^^^^^^^^^
5268 | |
5369 | help: desugar the match ergonomics: `&mut`
5470
5571error: the semantics of this pattern will change in edition 2024
56- --> $DIR/migration_lint.rs:71 :12
72+ --> $DIR/migration_lint.rs:73 :12
5773 |
5874LL | if let Some(&x) = &&&&&Some(&0u8) {
5975 | -^^^^^^^
6076 | |
6177 | help: desugar the match ergonomics: `&&&&&`
6278
6379error: the semantics of this pattern will change in edition 2024
64- --> $DIR/migration_lint.rs:76 :12
80+ --> $DIR/migration_lint.rs:78 :12
6581 |
6682LL | if let Some(&mut x) = &&&&&Some(&mut 0u8) {
6783 | -^^^^^^^^^^^
6884 | |
6985 | help: desugar the match ergonomics: `&&&&&`
7086
7187error: the semantics of this pattern will change in edition 2024
72- --> $DIR/migration_lint.rs:81 :12
88+ --> $DIR/migration_lint.rs:83 :12
7389 |
7490LL | if let Some(&x) = &&&&&mut Some(&0u8) {
7591 | -^^^^^^^
7692 | |
7793 | help: desugar the match ergonomics: `&&&&&mut`
7894
7995error: the semantics of this pattern will change in edition 2024
80- --> $DIR/migration_lint.rs:86 :12
96+ --> $DIR/migration_lint.rs:88 :12
8197 |
8298LL | if let Some(&mut Some(Some(x))) = &mut Some(&mut Some(&mut Some(0u8))) {
8399 | ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -88,7 +104,7 @@ LL | if let &mut Some(&mut Some(&mut Some(ref mut x))) = &mut Some(&mut Some
88104 | ++++ ++++ +++++++
89105
90106error: the semantics of this pattern will change in edition 2024
91- --> $DIR/migration_lint.rs:97 :9
107+ --> $DIR/migration_lint.rs:99 :9
92108 |
93109LL | let Struct { a, mut b, c } = &Struct { a: 0, b: 0, c: 0 };
94110 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -99,7 +115,7 @@ LL | let &Struct { ref a, mut b, ref c } = &Struct { a: 0, b: 0, c: 0 };
99115 | + +++ +++
100116
101117error: the semantics of this pattern will change in edition 2024
102- --> $DIR/migration_lint.rs:102 :9
118+ --> $DIR/migration_lint.rs:104 :9
103119 |
104120LL | let Struct { a: &a, b, ref c } = &Struct { a: &0, b: &0, c: &0 };
105121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +126,7 @@ LL | let &Struct { a: &a, ref b, ref c } = &Struct { a: &0, b: &0, c: &0 };
110126 | + +++
111127
112128error: the semantics of this pattern will change in edition 2024
113- --> $DIR/migration_lint.rs:108 :12
129+ --> $DIR/migration_lint.rs:110 :12
114130 |
115131LL | if let Struct { a: &Some(a), b: Some(&b), c: Some(c) } =
116132 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -121,12 +137,12 @@ LL | if let &Struct { a: &Some(a), b: &Some(&b), c: &Some(ref c) } =
121137 | + + + +++
122138
123139error: patterns are not allowed to reset the default binding mode in rust 2024
124- --> $DIR/migration_lint.rs:120 :9
140+ --> $DIR/migration_lint.rs:122 :9
125141 |
126142LL | (Some(mut x), migration_lint_macros::mixed_edition_pat!(y)) => {
127143 | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128144 | |
129145 | help: desugar the match ergonomics: `&`
130146
131- error: aborting due to 14 previous errors
147+ error: aborting due to 16 previous errors
132148
0 commit comments