Skip to content

Commit

Permalink
fix: failing release tests (#485)
Browse files Browse the repository at this point in the history
Separate crucial logic from debugging assertions.
With this change, all tests pass on my machine with `--release`
  • Loading branch information
croyzor authored Sep 1, 2023
1 parent b1e97db commit d376eee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d376eee

Please sign in to comment.