Skip to content

delete InternalError::Unknown - #227

Open
sunshowers wants to merge 1 commit into
jj-stack/rename-internalerror-variants-by-whether-they-carry-a-span-mnotoxlmfrom
jj-stack/delete-internalerror-unknown-okrnyrzq
Open

delete InternalError::Unknown#227
sunshowers wants to merge 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.
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.

1 participant