diff --git a/tasks/ast_codegen/src/generators/visit.rs b/tasks/ast_codegen/src/generators/visit.rs index 9da1f197dca63..22bfdad17854c 100644 --- a/tasks/ast_codegen/src/generators/visit.rs +++ b/tasks/ast_codegen/src/generators/visit.rs @@ -334,7 +334,7 @@ impl<'a> VisitBuilder<'a> { } else { match &*ty.borrow() { // TODO: this one is a hot-fix to prevent flattening `ExpressionArrayElement`. - // Shouldn't be an edge case + // Shouldn't be an edge case, RType::Enum(enum_) if enum_.item.ident == "Expression" && visit_as.is_some_and(|it| it == "ExpressionArrayElement") =>