Skip to content

Commit

Permalink
add expect to validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Mar 26, 2024
1 parent 4a426c6 commit 623cb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kani-compiler/src/kani_middle/transform/check_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ fn ty_validity_per_offset(
Ok(result)
}
FieldsShape::Arbitrary { ref offsets } => {
match ty.kind().rigid().unwrap() {
match ty.kind().rigid().expect(&format!("unexpected type: {ty:?}")) {
RigidTy::Adt(def, args) => {
match def.kind() {
AdtKind::Enum => {
Expand Down

0 comments on commit 623cb88

Please sign in to comment.