diff options
author | Son Ho | 2024-04-25 16:27:43 +0200 |
---|---|---|
committer | Son Ho | 2024-04-25 16:27:43 +0200 |
commit | eb5b2e76de6e2c6780b9817c1424777276ea5e00 (patch) | |
tree | 3c4865d0c9759af3bbb286243cf50d9c30fbcd61 /compiler | |
parent | 078b7f59ddfcb12a7b4c69f0a51bfd57cb391ddf (diff) |
Update the backend and ExtractBuiltin.ml
Diffstat (limited to '')
-rw-r--r-- | compiler/ExtractBuiltin.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/ExtractBuiltin.ml b/compiler/ExtractBuiltin.ml index d4a6f736..248d0fa8 100644 --- a/compiler/ExtractBuiltin.ml +++ b/compiler/ExtractBuiltin.ml @@ -554,14 +554,17 @@ let builtin_fun_effects = (fun n -> (n, { can_fail = false; stateful = false })) no_fail_no_state_funs in + (* TODO: all the functions registered in the [builtin_funs] above should + be considered a not using a state. There is a lot of redundancy + right now. *) let no_state_funs = [ - (* TODO: redundancy with the funs information above *) "alloc::vec::{alloc::vec::Vec<@T, @A>}::push"; "alloc::vec::{core::ops::index::Index<alloc::vec::Vec<@T, @A>, \ @I>}::index"; "alloc::vec::{core::ops::index::IndexMut<alloc::vec::Vec<@T, @A>, \ @I>}::index_mut"; + "core::option::{core::option::Option<@T>}::unwrap"; ] in let no_state_funs = |