Support Expr::Type with full feature only
diff --git a/src/gen/fold.rs b/src/gen/fold.rs
index 566a2ce..8f45209 100644
--- a/src/gen/fold.rs
+++ b/src/gen/fold.rs
@@ -155,7 +155,7 @@
fn fold_expr_try(&mut self, i: ExprTry) -> ExprTry { fold_expr_try(self, i) }
# [ cfg ( feature = "full" ) ]
fn fold_expr_tuple(&mut self, i: ExprTuple) -> ExprTuple { fold_expr_tuple(self, i) }
-
+# [ cfg ( feature = "full" ) ]
fn fold_expr_type(&mut self, i: ExprType) -> ExprType { fold_expr_type(self, i) }
fn fold_expr_unary(&mut self, i: ExprUnary) -> ExprUnary { fold_expr_unary(self, i) }
@@ -847,7 +847,7 @@
}
Type(_binding_0, ) => {
Type (
- _visitor.fold_expr_type(_binding_0),
+ full!(_visitor.fold_expr_type(_binding_0)),
)
}
If(_binding_0, ) => {
@@ -1299,7 +1299,7 @@
elems: FoldHelper::lift(_i . elems, |it| { _visitor.fold_expr(it) }),
}
}
-
+# [ cfg ( feature = "full" ) ]
pub fn fold_expr_type<V: Folder + ?Sized>(_visitor: &mut V, _i: ExprType) -> ExprType {
ExprType {
attrs: FoldHelper::lift(_i . attrs, |it| { _visitor.fold_attribute(it) }),