Skip to content

Commit

Permalink
validate_instance: make sure we actually have a body
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Dec 5, 2023
1 parent 606d96d commit 9f2d97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kani-compiler/src/kani_middle/stubbing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn validate_instance(tcx: TyCtxt, instance: Instance) -> bool {
checker.visit_body(&item.body());
checker.is_valid()
} else {
true
instance.body().is_some()
}
}

Expand Down

0 comments on commit 9f2d97b

Please sign in to comment.