diff --git a/src/extension/infer.rs b/src/extension/infer.rs index 4a6acd4e5..2cfdb2b9b 100644 --- a/src/extension/infer.rs +++ b/src/extension/infer.rs @@ -209,7 +209,8 @@ impl UnificationContext { /// Declare that a meta has been solved fn add_solution(&mut self, m: Meta, rs: ExtensionSet) { - debug_assert!(self.solved.insert(m, rs).is_none()); + let existing_sol = self.solved.insert(m, rs); + debug_assert!(existing_sol.is_none()); } /// If a metavariable has been merged, return the new meta, otherwise return