Remove some dbg!s

This commit is contained in:
Richard Feldman 2024-11-17 01:48:21 -05:00
parent 7832a7f16f
commit 073df686bc
No known key found for this signature in database
GPG key ID: DAC334802F365236

View file

@ -77,7 +77,7 @@ impl<'a, 'c, 'd, 'i, 's, 't, P: Push<Problem>> Env<'a, 'c, 'd, 'i, 's, 't, P> {
match can_expr { match can_expr {
Expr::Float(var, _precision_var, _str, val, _bound) => { Expr::Float(var, _precision_var, _str, val, _bound) => {
match dbg!(self.subs.get_content_without_compacting(*var)) { match self.subs.get_content_without_compacting(*var) {
Content::FlexVar(_) => { Content::FlexVar(_) => {
// Plain decimal number literals like `4.2` can still have an unbound var. // Plain decimal number literals like `4.2` can still have an unbound var.
Some(MonoExpr::Number(Number::Dec(*val))) Some(MonoExpr::Number(Number::Dec(*val)))
@ -159,7 +159,7 @@ impl<'a, 'c, 'd, 'i, 's, 't, P: Push<Problem>> Env<'a, 'c, 'd, 'i, 's, 't, P> {
// Generate a MonoExpr for each field, using the reserved IDs so that we end up with // Generate a MonoExpr for each field, using the reserved IDs so that we end up with
// that Slice being populated with the exprs in the fields, with the correct ordering. // that Slice being populated with the exprs in the fields, with the correct ordering.
fields.retain(|(_name, field)| { fields.retain(|(_name, field)| {
match dbg!(self.to_mono_expr(&field.loc_expr.value)) { match self.to_mono_expr(&field.loc_expr.value) {
Some(mono_expr) => { Some(mono_expr) => {
// Safety: This will run *at most* field.len() times, possibly less, // Safety: This will run *at most* field.len() times, possibly less,
// so this will never create an index that's out of bounds. // so this will never create an index that's out of bounds.
@ -171,11 +171,11 @@ impl<'a, 'c, 'd, 'i, 's, 't, P: Push<Problem>> Env<'a, 'c, 'd, 'i, 's, 't, P> {
self.mono_exprs self.mono_exprs
.insert(mono_expr_id, mono_expr, field.loc_expr.region); .insert(mono_expr_id, mono_expr, field.loc_expr.region);
dbg!(true) true
} }
None => { None => {
// Discard all the zero-sized fields as we go. // Discard all the zero-sized fields as we go.
dbg!(false) false
} }
} }
}); });