Skip to content

Commit 6d6be5f

Browse files
committed
Revert spurious change
1 parent 36c4c1e commit 6d6be5f

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/test/ui/generator/yielding-in-match-guards.rs

+21-21
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
async fn f() -> u8 { 1 }
1616
async fn foo() -> [bool; 10] { [false; 10] }
1717

18-
// pub async fn g(x: u8) {
19-
// match x {
20-
// y if f().await == y => (),
21-
// _ => (),
22-
// }
23-
// }
18+
pub async fn g(x: u8) {
19+
match x {
20+
y if f().await == y => (),
21+
_ => (),
22+
}
23+
}
2424

2525
// #78366: check the reference to the binding is recorded even if the binding is not autorefed
2626

27-
// async fn h(x: usize) {
28-
// match x {
29-
// y if foo().await[y] => (),
30-
// _ => (),
31-
// }
32-
// }
27+
async fn h(x: usize) {
28+
match x {
29+
y if foo().await[y] => (),
30+
_ => (),
31+
}
32+
}
3333

3434
async fn i(x: u8) {
3535
match x {
@@ -38,16 +38,16 @@ async fn i(x: u8) {
3838
}
3939
}
4040

41-
// async fn j(x: u8) {
42-
// match x {
43-
// y if let (1, 42) = (f().await, y) => (),
44-
// _ => (),
45-
// }
46-
// }
41+
async fn j(x: u8) {
42+
match x {
43+
y if let (1, 42) = (f().await, y) => (),
44+
_ => (),
45+
}
46+
}
4747

4848
fn main() {
49-
// let _ = g(10);
50-
// let _ = h(9);
49+
let _ = g(10);
50+
let _ = h(9);
5151
let _ = i(8);
52-
// let _ = j(7);
52+
let _ = j(7);
5353
}

0 commit comments

Comments
 (0)