Skip to content

Commit

Permalink
Delete async!/try! workaround from precedence test
Browse files Browse the repository at this point in the history
Parsing of these macros was fixed in syn.
  • Loading branch information
dtolnay committed Dec 10, 2023
1 parent 8c99b1a commit 5cd6888
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_precedence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5cd6888

Please sign in to comment.