mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
I dont got no references
This commit is contained in:
parent
89757dc31f
commit
5f8834d6b4
2 changed files with 3 additions and 3 deletions
|
@ -1985,8 +1985,8 @@ pub fn rec_defs_help(
|
||||||
def,
|
def,
|
||||||
&mut def_pattern_state,
|
&mut def_pattern_state,
|
||||||
&mut state,
|
&mut state,
|
||||||
&arguments,
|
arguments,
|
||||||
&arg_types,
|
arg_types,
|
||||||
);
|
);
|
||||||
let pattern_types = arguments.iter().map(|a| Type::Variable(a.0)).collect();
|
let pattern_types = arguments.iter().map(|a| Type::Variable(a.0)).collect();
|
||||||
|
|
||||||
|
|
|
@ -5762,7 +5762,7 @@ fn to_opt_branches<'a>(
|
||||||
Guard::NoGuard
|
Guard::NoGuard
|
||||||
};
|
};
|
||||||
|
|
||||||
if when_branch.redundant.is_redundant(&env.subs) {
|
if when_branch.redundant.is_redundant(env.subs) {
|
||||||
// Don't codegen this branch since it's redundant.
|
// Don't codegen this branch since it's redundant.
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue