Skip to content

Commit 935c1e1

Browse files
committed
Configure out more full-only expression kinds in print_expr
1 parent e664375 commit 935c1e1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/expr.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3069,51 +3069,67 @@ pub(crate) mod printing {
30693069
}
30703070

30713071
let do_print_expr = |tokens: &mut TokenStream| match expr {
3072+
#[cfg(feature = "full")]
30723073
Expr::Array(e) => e.to_tokens(tokens),
30733074
#[cfg(feature = "full")]
30743075
Expr::Assign(e) => print_expr_assign(e, tokens, fixup),
3076+
#[cfg(feature = "full")]
30753077
Expr::Async(e) => e.to_tokens(tokens),
30763078
#[cfg(feature = "full")]
30773079
Expr::Await(e) => print_expr_await(e, tokens, fixup),
30783080
Expr::Binary(e) => print_expr_binary(e, tokens, fixup),
3081+
#[cfg(feature = "full")]
30793082
Expr::Block(e) => e.to_tokens(tokens),
30803083
#[cfg(feature = "full")]
30813084
Expr::Break(e) => print_expr_break(e, tokens, fixup),
30823085
Expr::Call(e) => print_expr_call(e, tokens, fixup),
30833086
Expr::Cast(e) => print_expr_cast(e, tokens, fixup),
3087+
#[cfg(feature = "full")]
30843088
Expr::Closure(e) => e.to_tokens(tokens),
3089+
#[cfg(feature = "full")]
30853090
Expr::Const(e) => e.to_tokens(tokens),
3091+
#[cfg(feature = "full")]
30863092
Expr::Continue(e) => e.to_tokens(tokens),
30873093
Expr::Field(e) => print_expr_field(e, tokens, fixup),
3094+
#[cfg(feature = "full")]
30883095
Expr::ForLoop(e) => e.to_tokens(tokens),
30893096
Expr::Group(e) => e.to_tokens(tokens),
3097+
#[cfg(feature = "full")]
30903098
Expr::If(e) => e.to_tokens(tokens),
30913099
#[cfg(feature = "full")]
30923100
Expr::Index(e) => print_expr_index(e, tokens, fixup),
3101+
#[cfg(feature = "full")]
30933102
Expr::Infer(e) => e.to_tokens(tokens),
30943103
#[cfg(feature = "full")]
30953104
Expr::Let(e) => print_expr_let(e, tokens, fixup),
30963105
Expr::Lit(e) => e.to_tokens(tokens),
3106+
#[cfg(feature = "full")]
30973107
Expr::Loop(e) => e.to_tokens(tokens),
30983108
Expr::Macro(e) => e.to_tokens(tokens),
3109+
#[cfg(feature = "full")]
30993110
Expr::Match(e) => e.to_tokens(tokens),
31003111
Expr::MethodCall(e) => print_expr_method_call(e, tokens, fixup),
31013112
Expr::Paren(e) => e.to_tokens(tokens),
31023113
Expr::Path(e) => e.to_tokens(tokens),
31033114
#[cfg(feature = "full")]
31043115
Expr::Range(e) => print_expr_range(e, tokens, fixup),
31053116
Expr::Reference(e) => print_expr_reference(e, tokens, fixup),
3117+
#[cfg(feature = "full")]
31063118
Expr::Repeat(e) => e.to_tokens(tokens),
31073119
#[cfg(feature = "full")]
31083120
Expr::Return(e) => print_expr_return(e, tokens, fixup),
31093121
Expr::Struct(e) => e.to_tokens(tokens),
31103122
#[cfg(feature = "full")]
31113123
Expr::Try(e) => print_expr_try(e, tokens, fixup),
3124+
#[cfg(feature = "full")]
31123125
Expr::TryBlock(e) => e.to_tokens(tokens),
3126+
#[cfg(feature = "full")]
31133127
Expr::Tuple(e) => e.to_tokens(tokens),
31143128
Expr::Unary(e) => print_expr_unary(e, tokens, fixup),
3129+
#[cfg(feature = "full")]
31153130
Expr::Unsafe(e) => e.to_tokens(tokens),
31163131
Expr::Verbatim(e) => e.to_tokens(tokens),
3132+
#[cfg(feature = "full")]
31173133
Expr::While(e) => e.to_tokens(tokens),
31183134
#[cfg(feature = "full")]
31193135
Expr::Yield(e) => print_expr_yield(e, tokens, fixup),

0 commit comments

Comments
 (0)