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 8848634 commit 98ed62a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hax-lib/macros/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ impl ToTokens for HaxQuantifiers {
quote! {
#AttrHaxLang
#status_attr
fn forall<T, F: Fn(T) -> bool>(f: F) -> bool {
fn forall<T, U:Into<hax_lib::Prop>, F: Fn(T) -> U>(f: F) -> hax_lib::Prop {
true
}
#AttrHaxLang
#status_attr
fn exists<T, F: Fn(T) -> bool>(f: F) -> bool {
fn exists<T, U:Into<hax_lib::Prop>, F: Fn(T) -> U>(f: F) -> hax_lib::Prop {
true
}

Expand Down Expand Up @@ -279,7 +279,7 @@ pub fn make_fn_decoration(
sig.output = if let FnDecorationKind::Decreases = &kind {
syn::parse_quote! { -> Box<dyn Any> }
} else {
syn::parse_quote! { -> bool }
syn::parse_quote! { -> hax_lib::Prop }
};
sig
};
Expand Down

0 comments on commit 98ed62a

Please sign in to comment.