Skip to content

Commit 186e97e

Browse files
committed
fix
1 parent 9142078 commit 186e97e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

prusti-specs/src/specifications/preparser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ mod tests {
899899
);
900900
assert_eq!(
901901
parse_prusti(quote! { exists(|x: i32| a === b) }).unwrap().to_string(),
902-
"exists (() , # [prusti :: spec_only] | x : i32 | -> bool { ((snapshot_equality (a , b)) : bool) })",
902+
"exists (() , # [prusti :: spec_only] | x : i32 | -> bool { ((snapshot_equality (& a , & b)) : bool) })",
903903
);
904904
assert_eq!(
905905
parse_prusti(quote! { forall(|x: i32| a ==> b, triggers = [(c,), (d, e)]) }).unwrap().to_string(),

prusti-tests/tests/verify/fail/closures/using-type-dep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compiler-flags: -Penable_ghost_constraints=true
1+
// compile-flags: -Penable_ghost_constraints=true
22

33
#![feature(unboxed_closures, fn_traits)]
44

prusti-tests/tests/verify/fail/unsupported/non_closure_call.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// ignore-test The function arguments (desugared to a 1-tuple of reference
2+
// here) are probably the issue; then this is similar to #1077 ?
3+
14
pub fn max_by_key<A, B: Ord>(a: A, b: A, key: impl Fn(&A) -> B) -> A {
25
if key(&a) > key(&b) { //~ Error: only calls to closures are supported
36
a

prusti-tests/tests/verify/pass/closures/using-type-dep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compiler-flags: -Penable_ghost_constraints=true
1+
// compile-flags: -Penable_ghost_constraints=true
22

33
#![feature(unboxed_closures, fn_traits)]
44

0 commit comments

Comments
 (0)