about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Holk <ericholk@microsoft.com>2022-05-10 14:22:03 -0700
committerEric Holk <ericholk@microsoft.com>2022-05-10 14:22:03 -0700
commit6d6be5fd8b6615dbf8b6244d777a462efda3d410 (patch)
treeb046dba683afe5b1f8c846657a637add0d410c4b
parent36c4c1e366813e7c25fc2faf3a0566f267b62688 (diff)
downloadrust-6d6be5fd8b6615dbf8b6244d777a462efda3d410.tar.gz
rust-6d6be5fd8b6615dbf8b6244d777a462efda3d410.zip
Revert spurious change
-rw-r--r--src/test/ui/generator/yielding-in-match-guards.rs42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/test/ui/generator/yielding-in-match-guards.rs b/src/test/ui/generator/yielding-in-match-guards.rs
index 86481edf76b..4e89fc975d0 100644
--- a/src/test/ui/generator/yielding-in-match-guards.rs
+++ b/src/test/ui/generator/yielding-in-match-guards.rs
@@ -15,21 +15,21 @@
 async fn f() -> u8 { 1 }
 async fn foo() -> [bool; 10] { [false; 10] }
 
-// pub async fn g(x: u8) {
-//     match x {
-//         y if f().await == y => (),
-//         _ => (),
-//     }
-// }
+pub async fn g(x: u8) {
+    match x {
+        y if f().await == y => (),
+        _ => (),
+    }
+}
 
 // #78366: check the reference to the binding is recorded even if the binding is not autorefed
 
-// async fn h(x: usize) {
-//     match x {
-//         y if foo().await[y] => (),
-//         _ => (),
-//     }
-// }
+async fn h(x: usize) {
+    match x {
+        y if foo().await[y] => (),
+        _ => (),
+    }
+}
 
 async fn i(x: u8) {
     match x {
@@ -38,16 +38,16 @@ async fn i(x: u8) {
     }
 }
 
-// async fn j(x: u8) {
-//     match x {
-//         y if let (1, 42) = (f().await, y) => (),
-//         _ => (),
-//     }
-// }
+async fn j(x: u8) {
+    match x {
+        y if let (1, 42) = (f().await, y) => (),
+        _ => (),
+    }
+}
 
 fn main() {
-    // let _ = g(10);
-    // let _ = h(9);
+    let _ = g(10);
+    let _ = h(9);
     let _ = i(8);
-    // let _ = j(7);
+    let _ = j(7);
 }