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

Remove error handling in parse_type_no_bounds for PLUS token #591

Merged
merged 1 commit into from Jul 23, 2021

Conversation

philberty
Copy link
Member

parse_type_no_bounds tries to be helpful and greedily looks for a PLUS
token after having parsed a typepath so it can produce an error. But
that error breaks parsing expressions that contain "as" Cast
Expressions like "a as usize + b as usize". Drop the explicit error on
seeing a PLUS token and just return the type path parsed.

parse_type_no_bounds tries to be helpful and greedily looks for a PLUS
token after having parsed a typepath so it can produce an error. But
that error breaks parsing expressions that contain "as" Cast
Expressions like "a as usize + b as usize". Drop the explicit error on
seeing a PLUS token and just return the type path parsed.
@philberty philberty added the bug label Jul 23, 2021
@philberty philberty added this to the Data Structures 3 - Traits milestone Jul 23, 2021
@philberty philberty self-assigned this Jul 23, 2021
@philberty philberty added this to In progress in Data Structures 3 - Traits via automation Jul 23, 2021
@philberty
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 23, 2021

Build succeeded:

@bors bors bot merged commit 314b62e into master Jul 23, 2021
Data Structures 3 - Traits automation moved this from In progress to Done Jul 23, 2021
@philberty philberty deleted the mark/cast-fix branch July 28, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant