Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustc doesn’t yet realize that enum variants without explicit discriminators are constant enough to be used as patterns in a match statement (rust-lang/rust#23898). This happens to be what #[derive(FromPrimitive)] does, anyway. Signed-off-by: Anders Kaseorg <[email protected]>
- Loading branch information