mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Updated comment and formatting
This commit is contained in:
parent
d7304f86e5
commit
3eee6097df
2 changed files with 6 additions and 6 deletions
|
@ -290,7 +290,7 @@ fn specialize_drops_stmt<'a, 'i>(
|
|||
.min()
|
||||
.unwrap();
|
||||
|
||||
// TODO verify this works.
|
||||
// Update the existing env to match the lowest count.
|
||||
*count = *consumed;
|
||||
}
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ fn specialize_drops_stmt<'a, 'i>(
|
|||
}
|
||||
|
||||
let newer_branches = new_branches
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|(label, info, branch, branch_env)| {
|
||||
let new_branch = insert_incs!(branch_env, branch);
|
||||
|
||||
|
|
|
@ -2736,11 +2736,11 @@ impl<'a> LayoutRepr<'a> {
|
|||
|
||||
RecursivePointer(_) => true,
|
||||
|
||||
Builtin(builtin ) => match builtin {
|
||||
Int(_) | Float(_) | Bool | Decimal => false,
|
||||
Builtin(builtin) => match builtin {
|
||||
Int(_) | Float(_) | Bool | Decimal => false,
|
||||
Str | List(_) => true,
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Boxed(_) => true,
|
||||
|
||||
Struct(_) => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue