@@ -70,7 +70,6 @@ impl_macro_generable! {
7070}
7171
7272pub fn expand_expr ( e : P < ast:: Expr > , fld : & mut MacroExpander ) -> P < ast:: Expr > {
73- let expr_span = e. span ;
7473 return e. and_then ( |ast:: Expr { id, node, span, attrs} | match node {
7574
7675 // 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> {
7978 expand_mac_invoc ( mac, None , attrs. into_attr_vec ( ) , span, fld)
8079 }
8180
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-
9781 ast:: ExprKind :: While ( cond, body, opt_ident) => {
9882 let cond = fld. fold_expr ( cond) ;
9983 let ( body, opt_ident) = expand_loop_block ( body, opt_ident, fld) ;
0 commit comments