Skip to content

Commit 7deef69

Browse files
committed
better error message
1 parent bcea9da commit 7deef69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/filament/src/ir_passes/mono/monosig.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,11 @@ impl MonoSig {
694694
self.expr(underlying, p.ul(), pass)
695695
.get()
696696
.as_concrete(self.base.comp())
697-
.unwrap()
697+
.unwrap_or_else(|| {
698+
unreachable!(
699+
"Parameter used in instantiation was not concrete."
700+
)
701+
})
698702
})
699703
.collect_vec();
700704
CompKey::new(comp.ul(), conc_params)

0 commit comments

Comments
 (0)