This commit is contained in:
Ayaz Hafiz 2022-05-10 18:23:04 -04:00
parent 75f7f6e681
commit 3f0449292d
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 2 additions and 3 deletions

View file

@ -2137,11 +2137,10 @@ pub fn rec_defs_help(
let ((symbols, symbol_regions), expr_regions): ((Vec<_>, Vec<_>), Vec<_>) = defs
.iter()
.map(|def| {
.flat_map(|def| {
symbols_introduced_from_pattern(&def.loc_pattern)
.map(move |loc_symbol| ((loc_symbol.value, loc_symbol.region), def.loc_expr.region))
})
.flatten()
.unzip();
let cycle_constraint =