Skip to content

Commit b0f06ab

Browse files
committed
Fix nightly Token check
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.
1 parent d03701c commit b0f06ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/daily-grammar-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
continue-on-error: true
4040
run: |
4141
cargo run --release -p grammar-check -- lex-compare --path rust
42-
cargo run --release -p grammar-check -- lex-compare --permute Token
42+
cargo run --release -p grammar-check -- lex-compare --permute Token --tool rustc_parse
4343
4444
- name: Check for existing open issues
4545
if: steps.grammar-check.outcome == 'failure'

0 commit comments

Comments
 (0)