aboutsummaryrefslogtreecommitdiff
path: root/src/checker_set.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-05-05 11:01:30 +0100
committertslil <tslil@posteo.de>2026-05-05 11:04:30 +0100
commit1c47d2c4e0e9bd8ff38a7ef4939b78ac4722092b (patch)
treec2337ea78dbb29437caa073610a7a7bfe0b717b8 /src/checker_set.rs
parent90e451893671ceebaa37fcb634b5d7a3f153ba70 (diff)
replace todo! with real errors
Diffstat (limited to 'src/checker_set.rs')
-rw-r--r--src/checker_set.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/checker_set.rs b/src/checker_set.rs
index 626f74d..98e10ec 100644
--- a/src/checker_set.rs
+++ b/src/checker_set.rs
@@ -276,7 +276,9 @@ impl CheckerState {
.collect::<Result<Vec<_>, _>>()?;
let owner = arm_owners[0]; // safe because of the above decision about bottom
if !arm_owners.into_iter().all(|o| self.equal(owner, o)) {
- return Err(CheckerError::IncosistentCaseScrutineeSet(element.clone()));
+ return Err(CheckerError::ElementInconsistentCaseScrutineeSet(
+ element.clone(),
+ ));
}
// all cases are handled