@@ -17,7 +17,7 @@ fn test_func2<T>(func: impl FnOnce(u8) -> T, value: u8) {
17
17
// _3: simple expression
18
18
19
19
// test0: the cause reported in issue: label is used, and there is usage, multiple statements
20
- pub fn rustfnmt_test0_0 ( condition : bool ) {
20
+ pub fn rustfmt_test0_0 ( condition : bool ) {
21
21
test_macro ! ( |transaction| ' block: {
22
22
if condition {
23
23
break ' block 0 ;
@@ -27,7 +27,7 @@ pub fn rustfnmt_test0_0(condition: bool) {
27
27
} ) ;
28
28
}
29
29
30
- pub fn rustfnmt_test0_1 ( condition : bool ) {
30
+ pub fn rustfmt_test0_1 ( condition : bool ) {
31
31
test_func ( |transaction| ' block: {
32
32
if condition {
33
33
break ' block 0 ;
@@ -37,7 +37,7 @@ pub fn rustfnmt_test0_1(condition: bool) {
37
37
} ) ;
38
38
}
39
39
40
- pub fn rustfnmt_test0_2 ( condition : bool ) {
40
+ pub fn rustfmt_test0_2 ( condition : bool ) {
41
41
test_func2 ( |transaction| ' block: {
42
42
if condition {
43
43
break ' block 0 ;
@@ -47,7 +47,7 @@ pub fn rustfnmt_test0_2(condition: bool) {
47
47
} , 0 ) ;
48
48
}
49
49
50
- pub fn rustfnmt_test0_3 ( condition : bool ) {
50
+ pub fn rustfmt_test0_3 ( condition : bool ) {
51
51
let x = |transaction| ' block: {
52
52
if condition {
53
53
break ' block 0 ;
@@ -59,7 +59,7 @@ pub fn rustfnmt_test0_3(condition: bool) {
59
59
60
60
61
61
// test1: label is unused, and there is usage, multiple statements
62
- pub fn rustfnmt_test1_0 ( condition : bool ) {
62
+ pub fn rustfmt_test1_0 ( condition : bool ) {
63
63
test_macro ! ( |transaction| ' block: {
64
64
if condition {
65
65
todo!( "" ) ;
@@ -69,7 +69,7 @@ pub fn rustfnmt_test1_0(condition: bool) {
69
69
} ) ;
70
70
}
71
71
72
- pub fn rustfnmt_test1_1 ( condition : bool ) {
72
+ pub fn rustfmt_test1_1 ( condition : bool ) {
73
73
test_func ( |transaction| ' block: {
74
74
if condition {
75
75
todo ! ( "" ) ;
@@ -79,7 +79,7 @@ pub fn rustfnmt_test1_1(condition: bool) {
79
79
} ) ;
80
80
}
81
81
82
- pub fn rustfnmt_test1_2 ( condition : bool ) {
82
+ pub fn rustfmt_test1_2 ( condition : bool ) {
83
83
test_func2 ( |transaction| ' block: {
84
84
if condition {
85
85
todo ! ( "" ) ;
@@ -89,7 +89,7 @@ pub fn rustfnmt_test1_2(condition: bool) {
89
89
} , 0 ) ;
90
90
}
91
91
92
- pub fn rustfnmt_test1_3 ( condition : bool ) {
92
+ pub fn rustfmt_test1_3 ( condition : bool ) {
93
93
let x = |transaction| ' block: {
94
94
if condition {
95
95
todo ! ( "" ) ;
@@ -102,32 +102,32 @@ pub fn rustfnmt_test1_3(condition: bool) {
102
102
103
103
104
104
// test2: label is used, single expression
105
- pub fn rustfnmt_test2_0 ( condition : bool ) {
105
+ pub fn rustfmt_test2_0 ( condition : bool ) {
106
106
test_macro ! ( |transaction| ' block: {
107
107
break ' block 0 ;
108
108
} ) ;
109
109
}
110
110
111
- pub fn rustfnmt_test2_1 ( condition : bool ) {
111
+ pub fn rustfmt_test2_1 ( condition : bool ) {
112
112
test_func ( |transaction| ' block: {
113
113
break ' block 0 ;
114
114
} ) ;
115
115
}
116
116
117
- pub fn rustfnmt_test2_2 ( condition : bool ) {
117
+ pub fn rustfmt_test2_2 ( condition : bool ) {
118
118
test_func2 ( |transaction| ' block: {
119
119
break ' block 0 ;
120
120
} , 0 ) ;
121
121
}
122
122
123
- pub fn rustfnmt_test2_3 ( condition : bool ) {
123
+ pub fn rustfmt_test2_3 ( condition : bool ) {
124
124
let x = |transaction| ' block: {
125
125
break ' block 0 ;
126
126
} ;
127
127
}
128
128
129
129
// test3: label is unused, single general multi-line expression
130
- pub fn rustfnmt_test3_0 ( condition : bool ) {
130
+ pub fn rustfmt_test3_0 ( condition : bool ) {
131
131
test_macro ! ( |transaction| ' block: {
132
132
vec![
133
133
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
@@ -136,7 +136,7 @@ pub fn rustfnmt_test3_0(condition: bool) {
136
136
} ) ;
137
137
}
138
138
139
- pub fn rustfnmt_test3_1 ( condition : bool ) {
139
+ pub fn rustfmt_test3_1 ( condition : bool ) {
140
140
test_func ( |transaction| ' block: {
141
141
vec ! [
142
142
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
@@ -145,7 +145,7 @@ pub fn rustfnmt_test3_1(condition: bool) {
145
145
} ) ;
146
146
}
147
147
148
- pub fn rustfnmt_test3_2 ( condition : bool ) {
148
+ pub fn rustfmt_test3_2 ( condition : bool ) {
149
149
test_func2 ( |transaction| ' block: {
150
150
vec ! [
151
151
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
@@ -154,7 +154,7 @@ pub fn rustfnmt_test3_2(condition: bool) {
154
154
} , 0 ) ;
155
155
}
156
156
157
- pub fn rustfnmt_test3_3 ( condition : bool ) {
157
+ pub fn rustfmt_test3_3 ( condition : bool ) {
158
158
let x = |transaction| ' block: {
159
159
vec ! [
160
160
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
@@ -164,7 +164,7 @@ pub fn rustfnmt_test3_3(condition: bool) {
164
164
}
165
165
166
166
// test4: label is unused, single block statement-expression
167
- pub fn rustfnmt_test4_0 ( condition : bool ) {
167
+ pub fn rustfmt_test4_0 ( condition : bool ) {
168
168
test_macro ! ( |transaction| ' block: {
169
169
if condition {
170
170
break ' block 1 ;
@@ -174,7 +174,7 @@ pub fn rustfnmt_test4_0(condition: bool) {
174
174
} ) ;
175
175
}
176
176
177
- pub fn rustfnmt_test4_1 ( condition : bool ) {
177
+ pub fn rustfmt_test4_1 ( condition : bool ) {
178
178
test_func ( |transaction| ' block: {
179
179
if condition {
180
180
break ' block 1 ;
@@ -184,7 +184,7 @@ pub fn rustfnmt_test4_1(condition: bool) {
184
184
} ) ;
185
185
}
186
186
187
- pub fn rustfnmt_test4_2 ( condition : bool ) {
187
+ pub fn rustfmt_test4_2 ( condition : bool ) {
188
188
test_func2 ( |transaction| ' block: {
189
189
if condition {
190
190
break ' block 1 ;
@@ -194,7 +194,7 @@ pub fn rustfnmt_test4_2(condition: bool) {
194
194
} , 1 ) ;
195
195
}
196
196
197
- pub fn rustfnmt_test4_3 ( condition : bool ) {
197
+ pub fn rustfmt_test4_3 ( condition : bool ) {
198
198
let x = |transaction| ' block: {
199
199
if condition {
200
200
break ' block 1 ;
0 commit comments