rewrite unary expressions too - in order to support "NOT FALSE" expressions

This commit is contained in:
Nikita Sivukhin
2025-02-02 20:45:18 +04:00
parent 482dd78f27
commit a4a80f37bc

View File

@@ -675,6 +675,10 @@ fn rewrite_expr(expr: &mut ast::Expr) -> Result<()> {
}
Ok(())
}
ast::Expr::Unary(_, arg) => {
rewrite_expr(arg)?;
Ok(())
}
_ => Ok(()),
}
}