mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
My bad
This commit is contained in:
parent
75f7f6e681
commit
3f0449292d
2 changed files with 2 additions and 3 deletions
|
@ -74,7 +74,7 @@ pub fn load_types(
|
||||||
vec![def]
|
vec![def]
|
||||||
}
|
}
|
||||||
Declaration::DeclareRec(defs, cycle_mark) => {
|
Declaration::DeclareRec(defs, cycle_mark) => {
|
||||||
if cycle_mark.is_illegal(&subs) {
|
if cycle_mark.is_illegal(subs) {
|
||||||
vec![]
|
vec![]
|
||||||
} else {
|
} else {
|
||||||
defs
|
defs
|
||||||
|
|
|
@ -2137,11 +2137,10 @@ pub fn rec_defs_help(
|
||||||
|
|
||||||
let ((symbols, symbol_regions), expr_regions): ((Vec<_>, Vec<_>), Vec<_>) = defs
|
let ((symbols, symbol_regions), expr_regions): ((Vec<_>, Vec<_>), Vec<_>) = defs
|
||||||
.iter()
|
.iter()
|
||||||
.map(|def| {
|
.flat_map(|def| {
|
||||||
symbols_introduced_from_pattern(&def.loc_pattern)
|
symbols_introduced_from_pattern(&def.loc_pattern)
|
||||||
.map(move |loc_symbol| ((loc_symbol.value, loc_symbol.region), def.loc_expr.region))
|
.map(move |loc_symbol| ((loc_symbol.value, loc_symbol.region), def.loc_expr.region))
|
||||||
})
|
})
|
||||||
.flatten()
|
|
||||||
.unzip();
|
.unzip();
|
||||||
|
|
||||||
let cycle_constraint =
|
let cycle_constraint =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue