Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/edition/src/lib.rs')
| -rw-r--r-- | crates/edition/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/edition/src/lib.rs b/crates/edition/src/lib.rs index c25d5b9557..7e9c94af40 100644 --- a/crates/edition/src/lib.rs +++ b/crates/edition/src/lib.rs @@ -5,7 +5,8 @@ use std::fmt; #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] #[repr(u8)] pub enum Edition { - Edition2015, + // The syntax context stuff needs the discriminants to start from 0 and be consecutive. + Edition2015 = 0, Edition2018, Edition2021, Edition2024, |