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

Fix edge case of take_int and take_ident at end of string #348

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Nov 4, 2024

The previous implementation had weird semantics in the case of take_int(&mut "0"). This normally didn't arise in the course of thiserror's format string parsing because there would always be at least a } left in the format string after the int or ident part of an interpolation, but it did matter in an IDE context while the code is being typed.

@dtolnay dtolnay merged commit 2180b52 into master Nov 4, 2024
18 checks passed
@dtolnay dtolnay deleted the takestr branch November 4, 2024 20:33
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