From 18484e28ef7b13b95dc3af0b1e34c2181e1778e5 Mon Sep 17 00:00:00 2001
From: Ryan Lahfa
Date: Wed, 17 Apr 2024 00:01:34 +0200
Subject: compiler: map `core::mem::swap` to the pure swap

In the pure functional model, `swap` is mostly about borrow checking and
should simplify to the pure swap in our backends.

Other backends than Lean are not done in this commit.

Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr>
---
 tests/lean/External/FunsExternal_Template.lean | 6 ------
 1 file changed, 6 deletions(-)

(limited to 'tests/lean/External/FunsExternal_Template.lean')

diff --git a/tests/lean/External/FunsExternal_Template.lean b/tests/lean/External/FunsExternal_Template.lean
index 38151dc9..f0e771f7 100644
--- a/tests/lean/External/FunsExternal_Template.lean
+++ b/tests/lean/External/FunsExternal_Template.lean
@@ -6,12 +6,6 @@ import External.Types
 open Primitives
 open external
 
-/- [core::mem::swap]:
-   Source: '/rustc/d59363ad0b6391b7fc5bbb02c9ccf9300eef3753/library/core/src/mem/mod.rs', lines 726:0-726:42
-   Name pattern: core::mem::swap -/
-axiom core.mem.swap
-  (T : Type) : T → T → State → Result (State × (T × T))
-
 /- [core::num::nonzero::{core::num::nonzero::NonZeroU32#14}::new]:
    Source: '/rustc/d59363ad0b6391b7fc5bbb02c9ccf9300eef3753/library/core/src/num/nonzero.rs', lines 79:16-79:57
    Name pattern: core::num::nonzero::{core::num::nonzero::NonZeroU32}::new -/
-- 
cgit v1.2.3

