From b0d8a6ddd3a9056f9408f76cb36b820cae67b4ca Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Apr 2021 16:31:27 +0100 Subject: [PATCH] vpid, miri: Disable the check fn too This is then unused and produces a warning. Signed-off-by: Ian Jackson --- src/vpid.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vpid.rs b/src/vpid.rs index aa831d1c..f0575cbb 100644 --- a/src/vpid.rs +++ b/src/vpid.rs @@ -157,6 +157,7 @@ impl Notches { pub fn len(&self) -> NotchNumber { self.used } pub fn is_empty(&self) -> bool { self.used == 0 } + #[cfg(not(miri))] #[cfg(test)] fn check(&self) { let mut count_free = 0; -- 2.30.2