From ec5bfd04d2b423518ec44ee2fbf45627efe8ddfb Mon Sep 17 00:00:00 2001 From: rzvxa Date: Fri, 5 Jul 2024 19:17:41 +0330 Subject: [PATCH] docs: mention the original issue in the edge case. --- tasks/ast_codegen/src/generators/visit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") =>