use new binops

This commit is contained in:
Folkert 2021-03-20 21:19:10 +01:00
parent e0c211081a
commit d5ec66244f
5 changed files with 295 additions and 15 deletions

View file

@ -809,6 +809,12 @@ pub fn canonicalize_expr<'a>(
bad_expr
);
}
bad_expr @ ast::Expr::BinOps { .. } => {
panic!(
"A binary operator chain did not get desugared somehow: {:#?}",
bad_expr
);
}
bad_expr @ ast::Expr::UnaryOp(_, _) => {
panic!(
"A unary operator did not get desugared somehow: {:#?}",