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

Ensure that compiler tokenstream parsing only produces a compiler lexerror #486

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Nov 21, 2024

Previously, it was possible for proc_macro2::TokenStream::from_str(...).unwrap_err().span() to return a Span::Fallback span despite being inside a proc macro. That span would then cause panic if passed to set_span on a Compiler token.

@dtolnay dtolnay merged commit 27c5494 into master Nov 21, 2024
26 checks passed
@dtolnay dtolnay deleted the compilerlex branch November 21, 2024 05:39
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

Successfully merging this pull request may close these issues.

1 participant