summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorZyad Hassan2024-04-12 10:48:03 -0700
committerZyad Hassan2024-04-24 09:21:18 -0700
commit9b281e021b3b2dbfa6ff265cc843e0aac3b400ac (patch)
treee4231b5e3021e097f9b805a3372507d7bd7fc290 /compiler
parent1be37966ceea2510b911b119a96246b4657a62fd (diff)
Add core::option::unwrap builtin
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ExtractBuiltin.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/ExtractBuiltin.ml b/compiler/ExtractBuiltin.ml
index a9b939b5..e84d5896 100644
--- a/compiler/ExtractBuiltin.ml
+++ b/compiler/ExtractBuiltin.ml
@@ -383,6 +383,8 @@ let builtin_funs () : (pattern * bool list option * builtin_fun_info) list =
@A>>}::deref_mut"
(Some "alloc.vec.DerefMutVec.deref_mut")
(Some [ true; false ]);
+ mk_fun "core::option::{core::option::Option<@T>}::unwrap"
+ (Some "core.option.Option.unwrap") None;
]
@ List.flatten
(List.map