8000 Upgrade from syn 1 - Trait `Parse` is not implemented for `Pat` · Issue #1863 · dtolnay/syn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Upgrade from syn 1 - Trait Parse is not implemented for Pat #1863

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

Closed
8000
tisonkun opened this issue May 6, 2025 · 2 comments
Closed

Upgrade from syn 1 - Trait Parse is not implemented for Pat #1863

tisonkun opened this issue May 6, 2025 · 2 comments

Comments

@tisonkun
Copy link
tisonkun commented May 6, 2025

Here is the related branch for testing tisonkun/match-template#1.

I'm trying to upgrade match-template from using syn 1 to 2, but the previous code relies on impl Parse for Pat. I check the changelog at https://github.com/dtolnay/syn/releases/tag/2.0.0 but it doesn't tell about this breaking change and/or a migration path.

Any idea to work it around?

cc @dtolnay

@tisonkun
Copy link
Author
tisonkun commented May 6, 2025

Seems related to Parse vs. ParseQuote trait migration. But ParseQuote is not a public API.

@tisonkun tisonkun closed this as completed May 6, 2025
@tisonkun
Copy link
Author
tisonkun commented May 6, 2025

Self resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0