mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41: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!
|
// Topological sort gives us the reverse of the sorting we want!
|
||||||
.rev()
|
.rev()
|
||||||
{
|
{
|
||||||
let can_def = can_defs_by_symbol.get(&symbol).unwrap_or_else(|| {
|
match can_defs_by_symbol.get(&symbol) {
|
||||||
panic!(
|
Some(can_def) => can_defs.push(can_def.clone()),
|
||||||
"Symbol not found in can_defs_by_symbol: {:?} - can_defs_by_symbol was: {:?}",
|
None => (),
|
||||||
symbol, can_defs_by_symbol
|
}
|
||||||
)
|
|
||||||
});
|
|
||||||
|
|
||||||
can_defs.push(can_def.clone());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue