mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Restore some things
This commit is contained in:
parent
511c7b7a21
commit
a2e6c4ba12
3 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@ use roc_types::subs::{VarStore, Variable};
|
|||
/// lookup (if the bounds check passed). That internal function is hardcoded in code gen,
|
||||
/// which works fine because it doesn't involve any open tag unions.
|
||||
pub fn builtin_defs(var_store: &VarStore) -> Vec<Def> {
|
||||
vec![/*list_get(var_store),*/ list_first(var_store)]
|
||||
vec![list_get(var_store), list_first(var_store)]
|
||||
}
|
||||
|
||||
/// List.get : List elem, Int -> Result elem [ OutOfBounds ]*
|
||||
|
|
|
@ -105,7 +105,7 @@ macro_rules! assert_llvm_evals_to {
|
|||
builder.build_return(Some(&ret));
|
||||
|
||||
// Uncomment this to see the module's un-optimized LLVM instruction output:
|
||||
env.module.print_to_stderr();
|
||||
// env.module.print_to_stderr();
|
||||
|
||||
if main_fn.verify(true) {
|
||||
fpm.run_on(&main_fn);
|
||||
|
@ -419,7 +419,7 @@ macro_rules! assert_evals_to {
|
|||
assert_llvm_evals_to!($src, $expected, $ty, (|val| val));
|
||||
}
|
||||
{
|
||||
// assert_opt_evals_to!($src, $expected, $ty, (|val| val));
|
||||
assert_opt_evals_to!($src, $expected, $ty, (|val| val));
|
||||
}
|
||||
};
|
||||
($src:expr, $expected:expr, $ty:ty, $transform:expr) => {
|
||||
|
@ -428,7 +428,7 @@ macro_rules! assert_evals_to {
|
|||
assert_llvm_evals_to!($src, $expected, $ty, $transform);
|
||||
}
|
||||
{
|
||||
// assert_opt_evals_to!($src, $expected, $ty, $transform);
|
||||
assert_opt_evals_to!($src, $expected, $ty, $transform);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -642,7 +642,7 @@ define_builtins! {
|
|||
10 LIST_LEN: "len"
|
||||
11 LIST_FOLDL: "foldl"
|
||||
12 LIST_FOLDR: "foldr"
|
||||
13 LIST_GET_UNSAFE: "getUnsafe"
|
||||
13 LIST_GET_UNSAFE: "#getUnsafe"
|
||||
14 LIST_CONCAT: "concat"
|
||||
15 LIST_FIRST: "first"
|
||||
16 LIST_FIRST_ARG: "first#list"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue