Skip to content

Commit

Permalink
remove extra checks to prevent change from being breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhance committed Feb 16, 2025
1 parent dae513a commit 9d79b8d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions source/rust_verify/src/rust_to_vir_func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1942,12 +1942,6 @@ fn get_body_visibility_and_fuel(
// These don't matter for non-spec functions
Ok((private_vis, FuelOpaqueness::Opaque))
} else if !has_body {
if publish == Some(true) {
return err_span(span, "function is marked `open` but it has no body");
}
if publish == Some(false) {
return err_span(span, "function is marked `closed` but it has no body");
}
if opaque || opaque_outside_module {
return err_span(span, "opaque has no effect on a function without a body");
}
Expand Down

0 comments on commit 9d79b8d

Please sign in to comment.