Skip to content

Fix rule name for while syntax#2175

Merged
traviscross merged 1 commit intorust-lang:masterfrom
ehuss:while-grammar
Feb 17, 2026
Merged

Fix rule name for while syntax#2175
traviscross merged 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.
@traviscross traviscross added this pull request to the merge queue Feb 17, 2026
Merged via the queue into rust-lang:master with commit 4f46631 Feb 17, 2026
6 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Feb 17, 2026
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.

3 participants

Comments