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 >= in template list matching for a<b>=c #6898

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

kentslaney
Copy link
Contributor

@kentslaney kentslaney commented Jan 12, 2025

Connections
There was (at least) one mistake in how #6654 was implemented: it currently matches >= at the same level as a template list opening bracket, when it should match each character separately.

Description
It's solved by removing the match option symmetric to <=.

Testing
This is tested by ensuring array<i32, 1 << 1>=array(1, 2) passes validation

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@kentslaney kentslaney requested a review from a team January 12, 2025 23:45
@jimblandy jimblandy assigned teoxoy and unassigned jimblandy Jan 15, 2025
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@teoxoy
Copy link
Member

teoxoy commented Jan 15, 2025

@kentslaney looks like there is a conflict

@cwfitzgerald
Copy link
Member

Just a changelog, resolved

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) January 15, 2025 17:12
@cwfitzgerald cwfitzgerald merged commit a324670 into gfx-rs:trunk Jan 15, 2025
30 checks passed
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.

4 participants