Skip to content

Commit 2aaec6e

Browse files
committed
test: fix duplicated test cause
1 parent 75c5142 commit 2aaec6e

File tree

2 files changed

+0
-85
lines changed

2 files changed

+0
-85
lines changed

tests/source/closure-block-labels.rs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -57,47 +57,6 @@ pub fn rustfnmt_test0_3(condition: bool) {
5757
};
5858
}
5959

60-
// test0: the cause reported in issue: label is used, and there is usage, multiple statements
61-
pub fn rustfnmt_test0_0(condition: bool) {
62-
test_macro!(|transaction| 'block: {
63-
if condition {
64-
break 'block 0;
65-
}
66-
67-
todo!()
68-
});
69-
}
70-
71-
pub fn rustfnmt_test0_1(condition: bool) {
72-
test_func(|transaction| 'block: {
73-
if condition {
74-
break 'block 0;
75-
}
76-
77-
todo!()
78-
});
79-
}
80-
81-
pub fn rustfnmt_test0_2(condition: bool) {
82-
test_func2(|transaction| 'block: {
83-
if condition {
84-
break 'block 0;
85-
}
86-
87-
todo!()
88-
}, 0);
89-
}
90-
91-
pub fn rustfnmt_test0_3(condition: bool) {
92-
let x = |transaction| 'block: {
93-
if condition {
94-
break 'block 0;
95-
}
96-
97-
todo!()
98-
};
99-
}
100-
10160

10261
// test1: label is unused, and there is usage, multiple statements
10362
pub fn rustfnmt_test1_0(condition: bool) {

tests/target/closure-block-labels.rs

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -58,50 +58,6 @@ pub fn rustfnmt_test0_3(condition: bool) {
5858
};
5959
}
6060

61-
// test0: the cause reported in issue: label is used, and there is usage, multiple statements
62-
pub fn rustfnmt_test0_0(condition: bool) {
63-
test_macro!(|transaction| 'block: {
64-
if condition {
65-
break 'block 0;
66-
}
67-
68-
todo!()
69-
});
70-
}
71-
72-
pub fn rustfnmt_test0_1(condition: bool) {
73-
test_func(|transaction| 'block: {
74-
if condition {
75-
break 'block 0;
76-
}
77-
78-
todo!()
79-
});
80-
}
81-
82-
pub fn rustfnmt_test0_2(condition: bool) {
83-
test_func2(
84-
|transaction| 'block: {
85-
if condition {
86-
break 'block 0;
87-
}
88-
89-
todo!()
90-
},
91-
0,
92-
);
93-
}
94-
95-
pub fn rustfnmt_test0_3(condition: bool) {
96-
let x = |transaction| 'block: {
97-
if condition {
98-
break 'block 0;
99-
}
100-
101-
todo!()
102-
};
103-
}
104-
10561
// test1: label is unused, and there is usage, multiple statements
10662
pub fn rustfnmt_test1_0(condition: bool) {
10763
test_macro!(|transaction| 'block: {

0 commit comments

Comments
 (0)