Skip to content

Commit 5a569d9

Browse files
Remove forced typecheck failures from diagnostic funcs
1 parent 949b53d commit 5a569d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/serialize.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ pub mod tests {
237237
// 3) create expressions
238238
let a_expr = add.e(Expr::Sym(a));
239239
add.add_expr_loc(a_expr, 152, 153, add_fileid);
240-
handler.emit_diagnostic_expr(&add, &a_expr, "test", Level::Error);
241240
let b_expr = add.e(Expr::Sym(b));
242241
add.add_expr_loc(b_expr, 208, 209, add_fileid);
243242
let dut_s_expr = add.e(Expr::Sym(dut_s));
@@ -332,7 +331,7 @@ pub mod tests {
332331
let dut_done_expr = calyx_go_done.e(Expr::Sym(dut_done));
333332
calyx_go_done.add_expr_loc(dut_done_expr, 184, 192, calyx_fileid);
334333
let cond_expr = calyx_go_done.e(Expr::Binary(BinOp::Equal, dut_done_expr, one_expr));
335-
calyx_go_done.add_expr_loc(cond_expr, 183, 198, calyx_fileid);
334+
calyx_go_done.add_expr_loc(cond_expr, 172, 187, calyx_fileid);
336335
let not_expr = calyx_go_done.e(Expr::Unary(UnaryOp::Not, cond_expr));
337336
calyx_go_done.add_expr_loc(not_expr, 182, 198, calyx_fileid);
338337

0 commit comments

Comments
 (0)