-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tamer: ir::xir: Combine Token::{SelfClose, Close} variants
This removes `SelfClose` and merges it with `Close` by making the first parameter an `Option`. This isn't really ideal, but it really simplifies pattern matching, especially for the next commit. I'll have more details there. The primary motivation was lack of stabalization for binding after `@` in matches, e.g. `Foo(name, ele) | ele @ Element { name, .. }`. It looks like it's ready, though; maybe next Rust release? rust-lang/rust#65490 I don't know if I'll revert this change after then. This seems plenty clear, albeit more verbose.
- Loading branch information
1 parent
1c40b9c
commit 51507cc
Showing
3 changed files
with
32 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters