diff options
author | Son Ho | 2024-06-11 14:06:23 +0200 |
---|---|---|
committer | Son Ho | 2024-06-11 14:06:23 +0200 |
commit | 2e91b90e332c473253c2ff91fd65da34eb709572 (patch) | |
tree | d7b06e270fd6a1cf69717f98db7c30e43788dad1 /tests | |
parent | bf883726d771988c838bc6a6e1c012dfb008769c (diff) |
Deactivate the use of tuple projectors in the Lean backend
Diffstat (limited to '')
-rw-r--r-- | tests/lean/NoNestedBorrows.lean | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lean/NoNestedBorrows.lean b/tests/lean/NoNestedBorrows.lean index 262fc79e..f0438050 100644 --- a/tests/lean/NoNestedBorrows.lean +++ b/tests/lean/NoNestedBorrows.lean @@ -553,12 +553,14 @@ def update_tuple (x : (U32 × U32)) : Result (U32 × U32) := /- [no_nested_borrows::read_tuple_struct]: Source: 'tests/src/no_nested_borrows.rs', lines 490:0-490:52 -/ def read_tuple_struct (x : Tuple U32 U32) : Result U32 := - Result.ok x.#0 + let (i, _) := x + Result.ok i /- [no_nested_borrows::update_tuple_struct]: Source: 'tests/src/no_nested_borrows.rs', lines 494:0-494:51 -/ def update_tuple_struct (x : Tuple U32 U32) : Result (Tuple U32 U32) := - Result.ok (1#u32, x.#1) + let (_, i) := x + Result.ok (1#u32, i) /- [no_nested_borrows::create_tuple_struct]: Source: 'tests/src/no_nested_borrows.rs', lines 498:0-498:61 -/ |