mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-17 19:17:43 +00:00
Address lints
This commit is contained in:
parent
c529505aef
commit
f7bc3148ae
1 changed files with 2 additions and 3 deletions
|
|
@ -2320,8 +2320,7 @@ impl RegisterVariable {
|
||||||
reserved
|
reserved
|
||||||
} else {
|
} else {
|
||||||
// for any other rank, we need to copy; it takes care of adjusting the rank
|
// for any other rank, we need to copy; it takes care of adjusting the rank
|
||||||
let copied = deep_copy_var_in(subs, rank, pools, reserved, arena);
|
deep_copy_var_in(subs, rank, pools, reserved, arena)
|
||||||
copied
|
|
||||||
};
|
};
|
||||||
// Safety: the `destination` will become the source-of-truth for the type index, since it
|
// Safety: the `destination` will become the source-of-truth for the type index, since it
|
||||||
// was not already transformed before (if it was, we'd be in the Variable branch!)
|
// was not already transformed before (if it was, we'd be in the Variable branch!)
|
||||||
|
|
@ -2462,7 +2461,7 @@ fn type_to_variable<'a>(
|
||||||
let typ = unsafe { types.emplace_variable($typ, var) };
|
let typ = unsafe { types.emplace_variable($typ, var) };
|
||||||
|
|
||||||
stack.push(TypeToVar::Defer {
|
stack.push(TypeToVar::Defer {
|
||||||
typ: typ,
|
typ,
|
||||||
typ_index: $typ,
|
typ_index: $typ,
|
||||||
destination: var,
|
destination: var,
|
||||||
ambient_function: $ambient_function_policy,
|
ambient_function: $ambient_function_policy,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue