From e5a1f84bf8fc60cb043bd703fd97d76ac89a3906 Mon Sep 17 00:00:00 2001 From: saji Date: Sun, 5 May 2024 01:46:01 -0500 Subject: [PATCH] add unused-row assertion --- compiler/src/fitter.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/src/fitter.rs b/compiler/src/fitter.rs index 8f94389..209666b 100644 --- a/compiler/src/fitter.rs +++ b/compiler/src/fitter.rs @@ -96,6 +96,7 @@ fn map_remaining_olmc( Ok(x) } None => { + assert!(!unused.is_empty(), "should have rows available"); let minsize = unused.iter().map(|x| x.1).min().unwrap(); Err(MappingError::SopTooBig { name: sop.name.unwrap(),