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

Bug: error parsing rust impl 'lifetime + ... #486

Open
guissalustiano opened this issue Sep 5, 2024 · 2 comments
Open

Bug: error parsing rust impl 'lifetime + ... #486

guissalustiano opened this issue Sep 5, 2024 · 2 comments
Labels

Comments

@guissalustiano
Copy link

guissalustiano commented Sep 5, 2024

When I apply a pattern against

fn foo<'a>(x: impl 'a + Clone ) {}

It fails to parse: ERROR (code: 300) - Error parsing source code at 1:10

The follow code works

fn foo<'a, T: 'a + Clone>(x: impl 'a + Clone ) {}

Which confirms that the issue is on impl 'a + Clone.

@guissalustiano guissalustiano changed the title Error parsing rust impl 'static + Send Error parsing rust impl 'static + ... Sep 5, 2024
@morgante
Copy link
Contributor

morgante commented Sep 5, 2024

This probably needs an upstream fix: https://github.com/tree-sitter/tree-sitter-rust

If it's working with the upstream Grammar we likely just need to bump our version.

@morgante morgante added the rust label Sep 5, 2024
@guissalustiano
Copy link
Author

Thanks! An issue about that was open yesterday.
tree-sitter/tree-sitter-rust#234

@guissalustiano guissalustiano changed the title Error parsing rust impl 'static + ... Bug: error parsing rust impl 'lifetime + ... Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants