summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/ExtractBuiltin.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/ExtractBuiltin.ml b/compiler/ExtractBuiltin.ml
index 531f1d8b..c59825d1 100644
--- a/compiler/ExtractBuiltin.ml
+++ b/compiler/ExtractBuiltin.ml
@@ -294,6 +294,9 @@ let builtin_funs () : (pattern * bool list option * builtin_fun_info) list =
mk_fun "core::option::{core::option::Option<@T>}::take"
(Some (backend_choice "option::take" "Option::take"))
None;
+ mk_fun "core::option::{core::option::Option<@T>}::is_none"
+ (Some (backend_choice "option::is_none" "Option::isNone"))
+ (Some [ false ]);
mk_fun "alloc::vec::{alloc::vec::Vec<@T, alloc::alloc::Global>}::new"
(Some "alloc::vec::Vec::new") None;
mk_fun "alloc::vec::{alloc::vec::Vec<@T, @A>}::push" None
@@ -521,6 +524,7 @@ let builtin_fun_effects =
"core::mem::swap";
"core::mem::take";
"core::option::{core::option::Option<@T>}::take";
+ "core::option::{core::option::Option<@T>}::is_none";
"core::clone::impls::{core::clone::Clone<bool>}::clone";
"alloc::vec::{alloc::vec::Vec<@T, alloc::alloc::Global>}::with_capacity";
"core::slice::{[@T]}::reverse";