chiark / gitweb /
vpid, miri: Disable the check fn too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Apr 2021 15:31:27 +0000 (16:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Apr 2021 20:40:36 +0000 (21:40 +0100)
This is then unused and produces a warning.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/vpid.rs

index aa831d1cfaf9b2d3dcdc25e4616383073107e785..f0575cbbc2b9ed38424b730059b7ac7f8db77a63 100644 (file)
@@ -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;