@@ -70,7 +70,6 @@ impl_macro_generable! {
70
70
}
71
71
72
72
pub fn expand_expr ( e : P < ast:: Expr > , fld : & mut MacroExpander ) -> P < ast:: Expr > {
73
- let expr_span = e. span ;
74
73
return e. and_then ( |ast:: Expr { id, node, span, attrs} | match node {
75
74
76
75
// expr_mac should really be expr_ext or something; it's the
@@ -79,21 +78,6 @@ pub fn expand_expr(e: P<ast::Expr>, fld: &mut MacroExpander) -> P<ast::Expr> {
79
78
expand_mac_invoc ( mac, None , attrs. into_attr_vec ( ) , span, fld)
80
79
}
81
80
82
- ast:: ExprKind :: InPlace ( placer, value_expr) => {
83
- // Ensure feature-gate is enabled
84
- if !fld. cx . ecfg . features . unwrap ( ) . placement_in_syntax {
85
- feature_gate:: emit_feature_err (
86
- & fld. cx . parse_sess . span_diagnostic , "placement_in_syntax" , expr_span,
87
- feature_gate:: GateIssue :: Language , feature_gate:: EXPLAIN_PLACEMENT_IN
88
- ) ;
89
- }
90
-
91
- let placer = fld. fold_expr ( placer) ;
92
- let value_expr = fld. fold_expr ( value_expr) ;
93
- fld. cx . expr ( span, ast:: ExprKind :: InPlace ( placer, value_expr) )
94
- . with_attrs ( fold_thin_attrs ( attrs, fld) )
95
- }
96
-
97
81
ast:: ExprKind :: While ( cond, body, opt_ident) => {
98
82
let cond = fld. fold_expr ( cond) ;
99
83
let ( body, opt_ident) = expand_loop_block ( body, opt_ident, fld) ;
0 commit comments