@@ -21,63 +21,79 @@ LL | let Foo(mut x) = &mut Foo(0);
21
21
| help: desugar the match ergonomics: `&mut`
22
22
23
23
error: 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
25
41
|
26
42
LL | let Foo(&x) = &Foo(&0);
27
43
| -^^^^^^
28
44
| |
29
45
| help: desugar the match ergonomics: `&`
30
46
31
47
error: the semantics of this pattern will change in edition 2024
32
- --> $DIR/migration_lint.rs:55 :9
48
+ --> $DIR/migration_lint.rs:57 :9
33
49
|
34
50
LL | let Foo(&mut x) = &Foo(&mut 0);
35
51
| -^^^^^^^^^^
36
52
| |
37
53
| help: desugar the match ergonomics: `&`
38
54
39
55
error: the semantics of this pattern will change in edition 2024
40
- --> $DIR/migration_lint.rs:59 :9
56
+ --> $DIR/migration_lint.rs:61 :9
41
57
|
42
58
LL | let Foo(&x) = &mut Foo(&0);
43
59
| -^^^^^^
44
60
| |
45
61
| help: desugar the match ergonomics: `&mut`
46
62
47
63
error: the semantics of this pattern will change in edition 2024
48
- --> $DIR/migration_lint.rs:63 :9
64
+ --> $DIR/migration_lint.rs:65 :9
49
65
|
50
66
LL | let Foo(&mut x) = &mut Foo(&mut 0);
51
67
| -^^^^^^^^^^
52
68
| |
53
69
| help: desugar the match ergonomics: `&mut`
54
70
55
71
error: the semantics of this pattern will change in edition 2024
56
- --> $DIR/migration_lint.rs:71 :12
72
+ --> $DIR/migration_lint.rs:73 :12
57
73
|
58
74
LL | if let Some(&x) = &&&&&Some(&0u8) {
59
75
| -^^^^^^^
60
76
| |
61
77
| help: desugar the match ergonomics: `&&&&&`
62
78
63
79
error: the semantics of this pattern will change in edition 2024
64
- --> $DIR/migration_lint.rs:76 :12
80
+ --> $DIR/migration_lint.rs:78 :12
65
81
|
66
82
LL | if let Some(&mut x) = &&&&&Some(&mut 0u8) {
67
83
| -^^^^^^^^^^^
68
84
| |
69
85
| help: desugar the match ergonomics: `&&&&&`
70
86
71
87
error: the semantics of this pattern will change in edition 2024
72
- --> $DIR/migration_lint.rs:81 :12
88
+ --> $DIR/migration_lint.rs:83 :12
73
89
|
74
90
LL | if let Some(&x) = &&&&&mut Some(&0u8) {
75
91
| -^^^^^^^
76
92
| |
77
93
| help: desugar the match ergonomics: `&&&&&mut`
78
94
79
95
error: the semantics of this pattern will change in edition 2024
80
- --> $DIR/migration_lint.rs:86 :12
96
+ --> $DIR/migration_lint.rs:88 :12
81
97
|
82
98
LL | if let Some(&mut Some(Some(x))) = &mut Some(&mut Some(&mut Some(0u8))) {
83
99
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -88,7 +104,7 @@ LL | if let &mut Some(&mut Some(&mut Some(ref mut x))) = &mut Some(&mut Some
88
104
| ++++ ++++ +++++++
89
105
90
106
error: the semantics of this pattern will change in edition 2024
91
- --> $DIR/migration_lint.rs:97 :9
107
+ --> $DIR/migration_lint.rs:99 :9
92
108
|
93
109
LL | let Struct { a, mut b, c } = &Struct { a: 0, b: 0, c: 0 };
94
110
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -99,7 +115,7 @@ LL | let &Struct { ref a, mut b, ref c } = &Struct { a: 0, b: 0, c: 0 };
99
115
| + +++ +++
100
116
101
117
error: the semantics of this pattern will change in edition 2024
102
- --> $DIR/migration_lint.rs:102 :9
118
+ --> $DIR/migration_lint.rs:104 :9
103
119
|
104
120
LL | let Struct { a: &a, b, ref c } = &Struct { a: &0, b: &0, c: &0 };
105
121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +126,7 @@ LL | let &Struct { a: &a, ref b, ref c } = &Struct { a: &0, b: &0, c: &0 };
110
126
| + +++
111
127
112
128
error: the semantics of this pattern will change in edition 2024
113
- --> $DIR/migration_lint.rs:108 :12
129
+ --> $DIR/migration_lint.rs:110 :12
114
130
|
115
131
LL | if let Struct { a: &Some(a), b: Some(&b), c: Some(c) } =
116
132
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -121,12 +137,12 @@ LL | if let &Struct { a: &Some(a), b: &Some(&b), c: &Some(ref c) } =
121
137
| + + + +++
122
138
123
139
error: 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
125
141
|
126
142
LL | (Some(mut x), migration_lint_macros::mixed_edition_pat!(y)) => {
127
143
| -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128
144
| |
129
145
| help: desugar the match ergonomics: `&`
130
146
131
- error: aborting due to 14 previous errors
147
+ error: aborting due to 16 previous errors
132
148
0 commit comments