mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Fix canonicalization more
This commit is contained in:
parent
9c190e4a63
commit
121b255ae5
1 changed files with 4 additions and 8 deletions
|
@ -1698,14 +1698,10 @@ fn can_defs<'a>(
|
|||
// Topological sort gives us the reverse of the sorting we want!
|
||||
.rev()
|
||||
{
|
||||
let can_def = can_defs_by_symbol.get(&symbol).unwrap_or_else(|| {
|
||||
panic!(
|
||||
"Symbol not found in can_defs_by_symbol: {:?} - can_defs_by_symbol was: {:?}",
|
||||
symbol, can_defs_by_symbol
|
||||
)
|
||||
});
|
||||
|
||||
can_defs.push(can_def.clone());
|
||||
match can_defs_by_symbol.get(&symbol) {
|
||||
Some(can_def) => can_defs.push(can_def.clone()),
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue