diff --git a/core/translate/optimizer.rs b/core/translate/optimizer.rs
index dc9dccaa6..814958392 100644
--- a/core/translate/optimizer.rs
+++ b/core/translate/optimizer.rs
@@ -479,7 +479,7 @@ fn rewrite_exprs_update(plan: &mut UpdatePlan) -> Result<()> {
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
-pub enum ConstantPredicate {
+pub enum AlwaysTrueOrFalse {
AlwaysTrue,
AlwaysFalse,
}
@@ -489,17 +489,18 @@ pub enum ConstantPredicate {
Implemented for ast::Expr
*/
pub trait Optimizable {
- // if the expression is a constant expression e.g. '1', returns the constant condition
- fn check_constant(&self) -> Result