mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +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,
|
||||
&mut def_pattern_state,
|
||||
&mut state,
|
||||
&arguments,
|
||||
&arg_types,
|
||||
arguments,
|
||||
arg_types,
|
||||
);
|
||||
let pattern_types = arguments.iter().map(|a| Type::Variable(a.0)).collect();
|
||||
|
||||
|
|
|
@ -5762,7 +5762,7 @@ fn to_opt_branches<'a>(
|
|||
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.
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue