aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-04-29 20:25:04 +0100
committertslil <tslil@posteo.de>2026-04-29 20:35:42 +0100
commit79a976266ef75a82b327de5f97dc55bd69baaee7 (patch)
tree475ea3d902a2205edadb208fa33e753a4f524657 /src
parentc579060a7879670d010d649536996bb063dbe689 (diff)
correctly handle stuck app cases
Diffstat (limited to 'src')
-rw-r--r--src/checker_signature.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/checker_signature.rs b/src/checker_signature.rs
index 9512790..7b07105 100644
--- a/src/checker_signature.rs
+++ b/src/checker_signature.rs
@@ -274,9 +274,11 @@ impl CheckerState {
element: *element.clone(),
})
}
- Instance::Project { .. } | Instance::App(_, _) => panic!(
- "invariant violation: we did not completely expand the inner instance in our app"
- ),
+ Instance::Project { .. } | Instance::App(_, _) => {
+ // it would appear that we are stuck here, so our only
+ // choice is to continue to be so
+ Ok(Instance::App(Box::new(inner), element.clone()))
+ }
}
}
}