@@ -14,7 +14,7 @@ fn ok_mutation_in_if_guard(mut q: i32) {
14
14
}
15
15
}
16
16
17
- fn ok_mutation_in_ ( mut q : i32 ) {
17
+ fn ok_mutation_in_if_let_guard ( mut q : i32 ) {
18
18
match q {
19
19
// OK, mutation doesn't change which patterns g matches
20
20
_ if let Some ( ( ) ) = { q = 1 ; None } => ( ) ,
@@ -81,7 +81,7 @@ fn ok_indirect_mutation_in_if_guard(mut p: &bool) {
81
81
}
82
82
}
83
83
84
- fn ok_indirect_mutation_in_ ( mut p : & bool ) {
84
+ fn ok_indirect_mutation_in_if_let_guard ( mut p : & bool ) {
85
85
match * p {
86
86
// OK, mutation doesn't change which patterns s matches
87
87
_ if let Some ( ( ) ) = {
@@ -103,7 +103,7 @@ fn mutation_invalidates_pattern_in_if_guard(mut q: bool) {
103
103
}
104
104
}
105
105
106
- fn mutation_invalidates_pattern_in_ ( mut q : bool ) {
106
+ fn mutation_invalidates_pattern_in_if_let_guard ( mut q : bool ) {
107
107
match q {
108
108
// q doesn't match the pattern with the guard by the end of the guard.
109
109
false if let Some ( ( ) ) = {
@@ -126,7 +126,7 @@ fn mutation_invalidates_previous_pattern_in_if_guard(mut r: bool) {
126
126
}
127
127
}
128
128
129
- fn mutation_invalidates_previous_pattern_in_ ( mut r : bool ) {
129
+ fn mutation_invalidates_previous_pattern_in_if_let_guard ( mut r : bool ) {
130
130
match r {
131
131
// r matches a previous pattern by the end of the guard.
132
132
true => ( ) ,
@@ -151,7 +151,7 @@ fn match_on_borrowed_early_end_if_guard(mut s: bool) {
151
151
}
152
152
}
153
153
154
- fn match_on_borrowed_early_end_ ( mut s : bool ) {
154
+ fn match_on_borrowed_early_end_if_let_guard ( mut s : bool ) {
155
155
let h = & mut s;
156
156
// OK value of s is unused before modification.
157
157
match s {
@@ -175,7 +175,7 @@ fn bad_mutation_in_if_guard(mut t: bool) {
175
175
}
176
176
}
177
177
178
- fn bad_mutation_in_ ( mut t : bool ) {
178
+ fn bad_mutation_in_if_let_guard ( mut t : bool ) {
179
179
match t {
180
180
true => ( ) ,
181
181
false if let Some ( ( ) ) = {
@@ -249,7 +249,7 @@ fn bad_indirect_mutation_in_if_guard(mut y: &bool) {
249
249
}
250
250
}
251
251
252
- fn bad_indirect_mutation_in_ ( mut y : & bool ) {
252
+ fn bad_indirect_mutation_in_if_let_guard ( mut y : & bool ) {
253
253
match * y {
254
254
true => ( ) ,
255
255
false if let Some ( ( ) ) = {
0 commit comments