Skip to content

Fix the nightly grammar validation job - #2347

Merged
traviscross merged 2 commits into
rust-lang:masterfrom
ehuss:fix-nightly-check
Sep 1, 2026
Merged

Fix the nightly grammar validation job#2347
traviscross merged 2 commits into
rust-lang:masterfrom
ehuss:fix-nightly-check

Conversation

@ehuss

@ehuss ehuss commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This includes a fix for the nightly validation job. It also adds a test (the "three" iterator) that I intended to include but forgot.

Closes #2332

This fixes the scheduled job when it was trying the Token permutation.
The problem is that proc-macro2 is failing for some inputs. In
particular it was having problems with CR in string continuations
(dtolnay/proc-macro2#540).

There probably should be a better mechanism for identifying inputs that
are known to fail and to allow them. This can be difficult with
generated inputs since keeping that list up-to-date can be a challenge.
It would likely be best to have some automated tooling to help with
that.

For now, this just disables the proc-macro2 validation for generated
Token inputs.
This adds the 3-character Token validation checks. It checks every
permutation of characters in the range 0..=0x7F for length one, two, and
three. This results in 4,227,328 checks which on my system takes about
22 seconds. On CI it will be much longer, but should be tolerable on a
nightly job.
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Sep 1, 2026
@traviscross
traviscross added this pull request to the merge queue Sep 1, 2026
Merged via the queue into rust-lang:master with commit 9e185a2 Sep 1, 2026
7 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Sep 1, 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.

Daily Grammar Check Failed - 2026-08-19

3 participants