mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Remove some dbg!s
This commit is contained in:
parent
7832a7f16f
commit
073df686bc
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue