Unnamed repository; edit this file 'description' to name the repository.
Fix an assert that didn't check what it should
Chayim Refael Friedman 4 months ago
parent 0023f19 · commit 14890be
-rw-r--r--crates/span/src/ast_id.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/span/src/ast_id.rs b/crates/span/src/ast_id.rs
index bd49e08b10..2e93925bd5 100644
--- a/crates/span/src/ast_id.rs
+++ b/crates/span/src/ast_id.rs
@@ -158,7 +158,7 @@ enum ErasedFileAstIdKind {
const HASH_BITS: u32 = 16;
const INDEX_BITS: u32 = 11;
const KIND_BITS: u32 = 5;
-const _: () = assert!(ErasedFileAstIdKind::Fixup as u32 <= ((1 << KIND_BITS) - 1));
+const _: () = assert!(ErasedFileAstIdKind::Root as u32 <= ((1 << KIND_BITS) - 1));
const _: () = assert!(HASH_BITS + INDEX_BITS + KIND_BITS == u32::BITS);
#[inline]