Fix canonicalization more

This commit is contained in:
Richard Feldman 2019-11-20 19:42:33 -05:00
parent 9c190e4a63
commit 121b255ae5

View file

@ -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());
} }
( (