Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade syn to 2.0 #499

Merged
merged 1 commit into from Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion html5ever/Cargo.toml
Expand Up @@ -24,7 +24,7 @@ criterion = "0.3"

[build-dependencies]
quote = "1"
syn = { version = "1", features = ["extra-traits", "full", "fold"] }
syn = { version = "2", features = ["extra-traits", "full", "fold"] }
proc-macro2 = "1"

[[bench]]
Expand Down
4 changes: 2 additions & 2 deletions html5ever/macros/match_token.rs
Expand Up @@ -197,7 +197,7 @@ impl Parse for LHS {
}
Ok(LHS::Tags(tags))
} else {
let p: syn::Pat = input.parse()?;
let p = input.call(syn::Pat::parse_single)?;
Ok(LHS::Pattern(p))
}
}
Expand Down Expand Up @@ -423,7 +423,7 @@ impl Fold for MatchTokenParser {
if mac.path == parse_quote!(match_token) {
return syn::fold::fold_stmt(
self,
syn::Stmt::Expr(expand_match_token(&mac.tokens)),
syn::Stmt::Expr(expand_match_token(&mac.tokens), None),
);
}
},
Expand Down