Skip to content

Commit

Permalink
macro requires ensures
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbhargavan committed Feb 9, 2025
1 parent 98ed62a commit e49ac46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hax-lib/src/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn inline_unsafe<T>(_: &str) -> T {
}

#[doc(hidden)]
pub fn _internal_loop_invariant<T, P: FnOnce(T) -> bool>(_: P) {}
pub fn _internal_loop_invariant<T, P: FnOnce(T) -> Prop>(_: P) {}

pub trait Refinement {
type InnerType;
Expand Down
2 changes: 1 addition & 1 deletion hax-lib/src/implementation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub fn inline_unsafe<T>(_: &str) -> T {

/// A dummy function that holds a loop invariant.
#[doc(hidden)]
pub fn _internal_loop_invariant<T, U:Into<Prop>, P: FnOnce(T) -> U>(_: P) {}
pub fn _internal_loop_invariant<T, P: FnOnce(T) -> Prop>(_: P) {}

/// A type that implements `Refinement` should be a newtype for a
/// type `T`. The field holding the value of type `T` should be
Expand Down

0 comments on commit e49ac46

Please sign in to comment.