Merge pull request #21280 from ChayimFriedman2/fix-assert

minor: Fix an assert that didn't check what it should
This commit is contained in:
Chayim Refael Friedman 2025-12-16 06:00:31 +00:00 committed by GitHub
commit 76cd4d6bf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]