Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #21280 from ChayimFriedman2/fix-assert
minor: Fix an assert that didn't check what it should
Chayim Refael Friedman 4 months ago
parent 9bd3aa9 · parent 14890be · commit 76cd4d6
-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 a251892613..e54e0bd2fc 100644
--- a/crates/span/src/ast_id.rs
+++ b/crates/span/src/ast_id.rs
@@ -167,7 +167,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]