allow 'unused' functions

This commit is contained in:
Nicholas Ward 2022-06-17 11:11:33 -07:00
parent d2eb3b141b
commit 9f22cc72c3
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#![allow(dead_code)]
use std::ops::Range;
/// Filter. 1 if the row is part of bootstrapping the kernel code, 0 otherwise.

View File

@ -48,6 +48,7 @@ pub(crate) const COUNTER_PERMUTED: usize = RANGE_CHECK_PERMUTED + 1;
// Flags to indicate if this operation corresponds to the `i`th memory op in a certain row of the
// CPU table.
const IS_MEMOP_START: usize = COUNTER_PERMUTED + 1;
#[allow(dead_code)]
pub(crate) const fn is_memop(i: usize) -> usize {
debug_assert!(i < NUM_MEMORY_OPS);
IS_MEMOP_START + i