From 5cd68883d36210e70525db1899aea6c51227f708 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 10 Dec 2023 11:02:54 -0800 Subject: [PATCH] Delete async!/try! workaround from precedence test Parsing of these macros was fixed in syn. --- tests/test_precedence.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs index ce834e2e22..263b8d147f 100644 --- a/tests/test_precedence.rs +++ b/tests/test_precedence.rs @@ -69,12 +69,8 @@ fn test_rustc_precedence() { let passed = AtomicUsize::new(0); let failed = AtomicUsize::new(0); - // 2018 edition is hard - let edition_regex = Regex::new(r"\b(async|try)[!(]").unwrap(); - repo::for_each_rust_file(|path| { let content = fs::read_to_string(path).unwrap(); - let content = edition_regex.replace_all(&content, "_$0"); let (l_passed, l_failed) = match syn::parse_file(&content) { Ok(file) => {