Skip to content

Fix rule name for while syntax#2175

Open
ehuss wants to merge 1 commit intorust-lang:masterfrom
ehuss:while-grammar
Open

Fix rule name for while syntax#2175
ehuss wants to merge 1 commit intorust-lang:masterfrom
ehuss:while-grammar

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Feb 16, 2026

The grammar rule names should be called .syntax.

This also removes the existing expr.loop.while.syntax rule since it would otherwise be a duplicate rule name. Repeating the syntax in English doesn't really add much here, and we have been leaning towards not having these kinds of rules.

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Feb 16, 2026
The grammar rule names should be called `.syntax`.

This also removes the existing `expr.loop.while.syntax` rule since it
would otherwise be a duplicate rule name. Repeating the syntax in
English doesn't really add much here, and we have been leaning towards
not having these kinds of rules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants