mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
standardize WhenRecursive
This commit is contained in:
parent
468caba3c9
commit
0f46ea83d0
2 changed files with 2 additions and 9 deletions
|
@ -5611,7 +5611,7 @@ pub fn add_func<'ctx>(
|
||||||
fn_val
|
fn_val
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||||
pub(crate) enum WhenRecursive<'a> {
|
pub(crate) enum WhenRecursive<'a> {
|
||||||
Unreachable,
|
Unreachable,
|
||||||
Loop(UnionLayout<'a>),
|
Loop(UnionLayout<'a>),
|
||||||
|
|
|
@ -16,7 +16,7 @@ use roc_region::all::Region;
|
||||||
|
|
||||||
use super::build::{
|
use super::build::{
|
||||||
add_func, load_roc_value, load_symbol_and_layout, use_roc_value, FunctionSpec, LlvmBackendMode,
|
add_func, load_roc_value, load_symbol_and_layout, use_roc_value, FunctionSpec, LlvmBackendMode,
|
||||||
Scope,
|
Scope, WhenRecursive,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub(crate) struct SharedMemoryPointer<'ctx>(PointerValue<'ctx>);
|
pub(crate) struct SharedMemoryPointer<'ctx>(PointerValue<'ctx>);
|
||||||
|
@ -267,13 +267,6 @@ pub(crate) fn clone_to_shared_memory<'a, 'ctx, 'env>(
|
||||||
write_state(env, original_ptr, new_count, offset)
|
write_state(env, original_ptr, new_count, offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Copy)]
|
|
||||||
enum WhenRecursive<'a> {
|
|
||||||
Unreachable,
|
|
||||||
#[allow(dead_code)]
|
|
||||||
Loop(UnionLayout<'a>),
|
|
||||||
}
|
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn build_clone<'a, 'ctx, 'env>(
|
fn build_clone<'a, 'ctx, 'env>(
|
||||||
env: &Env<'a, 'ctx, 'env>,
|
env: &Env<'a, 'ctx, 'env>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue