Skip to content

Commit

Permalink
better unreachable
Browse files Browse the repository at this point in the history
Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com>
  • Loading branch information
ss2165 and aborgna-q committed Aug 30, 2024
1 parent feb706e commit 43e515d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hugr-core/src/extension/prelude/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ impl SignatureFromArgs for ArrayOpDef {
),
)
}
_ => unreachable!("Other operations should not need custom computation."),
_ => unreachable!(
"Operation {} should not need custom computation.",
self.name()
),
};
Ok(poly_func_ty)
}
Expand Down

0 comments on commit 43e515d

Please sign in to comment.