chore(lint): suppress dead_code warnings for const-eval functions to address MSRV-specific lint behavior

This commit is contained in:
elipeter 2026-06-02 22:15:41 -05:00
parent c29cf69d42
commit 2e456c15d1
3 changed files with 4 additions and 0 deletions

View file

@ -68,6 +68,7 @@ pub const CORPUS_VERSION: &str = "17";
/// is caught at `cargo build` rather than at test time.
const _: () = assert_corpus_version_str_matches_u32();
#[allow(dead_code)] // Called from a const assertion; MSRV lints may miss const-eval uses.
const fn assert_corpus_version_str_matches_u32() {
let int_val = crate::dynamic::corpus::CORPUS_VERSION;
let bytes = CORPUS_VERSION.as_bytes();