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

Parsing apparently enters infinite loop #1738

Closed
lukaslueg opened this issue Sep 27, 2024 · 1 comment · Fixed by #1739 or #1741
Closed

Parsing apparently enters infinite loop #1738

lukaslueg opened this issue Sep 27, 2024 · 1 comment · Fixed by #1739 or #1741

Comments

@lukaslueg
Copy link
Contributor

lukaslueg commented Sep 27, 2024

Using syn 2.0.77, the following reduced examples seems to never return (at least not before I kill it after several minutes). Notice that 2.0.61 returns, while 2.0.62 .. does not.

fn main() {
    syn::parse_str::<syn::File>("#[a=a=a<a<]");
}
fn main() {
    syn::parse_str::<syn::GenericParam>("a=<a<{a=a<a<}");
}
@lukaslueg lukaslueg changed the title Parsing attribute apparently enters infinite loop Parsing apparently enters infinite loop Sep 27, 2024
@lukaslueg
Copy link
Contributor Author

Using 09d020f, #[r=6=r..1..] seems to run into the same problem.

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