Skip to content

delete InternalError::Unknown - #227

Merged
sunshowers merged 1 commit into
jj-stack/rename-internalerror-variants-by-whether-they-carry-a-span-mnotoxlmfrom
jj-stack/delete-internalerror-unknown-okrnyrzq
Sep 4, 2026
Merged

delete InternalError::Unknown#227
sunshowers merged 1 commit into
jj-stack/rename-internalerror-variants-by-whether-they-carry-a-span-mnotoxlmfrom
jj-stack/delete-internalerror-unknown-okrnyrzq

Conversation

@sunshowers

Copy link
Copy Markdown
Contributor

Previously, last_err returned Unknown if no tokens had been read. Contrary to the comments there, it is actually possible to hit this case in situations like Named() or an empty declarative macro substitution.

Change things so that every TokenDe now carries the enclosing group. This lets us remove the Unknown variant and fix a couple of panics.

Previously, `last_err` returned `Unknown` if no tokens had been read. Contrary to the comments there, it is actually possible to hit this case in situations like `Named()` or an empty declarative macro substitution.

Change things so that every `TokenDe` now carries the enclosing group. This lets us remove the `Unknown` variant and fix a couple of panics.
@sunshowers
sunshowers merged commit e5ba0d4 into main Sep 4, 2026
@sunshowers
sunshowers deleted the jj-stack/delete-internalerror-unknown-okrnyrzq branch September 4, 2026 20:53
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.

2 participants