From 6d6be5fd8b6615dbf8b6244d777a462efda3d410 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Tue, 10 May 2022 14:22:03 -0700 Subject: [PATCH] Revert spurious change --- .../ui/generator/yielding-in-match-guards.rs | 42 +++++++++---------- 1 file 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 86481edf76b0..4e89fc975d04 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); }