From 6aae9d870fcd9f30d265d3f287627ac5fbad8f4f Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Sun, 26 Aug 2018 13:20:07 +0900 Subject: Remove an unnecessary attribute --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 89dcf6f5ff3..7ebb967a494 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(tool_attributes)] #![feature(decl_macro)] #![allow(unused_attributes)] #![feature(type_ascription)] -- cgit 1.4.1-3-g733a5 From 78a0cde5bfb337af1812b06a73819cbb5ad61f06 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Sun, 26 Aug 2018 13:20:25 +0900 Subject: Format in-place expression like assignment --- src/expr.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/expr.rs b/src/expr.rs index fdea683df0a..74639c6ef63 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -338,8 +338,10 @@ pub fn format_expr( )) } } - // FIXME(#2743) - ast::ExprKind::ObsoleteInPlace(..) => unimplemented!(), + ast::ExprKind::ObsoleteInPlace(ref lhs, ref rhs) => lhs + .rewrite(context, shape) + .map(|s| s + " <-") + .and_then(|lhs| rewrite_assign_rhs(context, lhs, &**rhs, shape)), ast::ExprKind::Async(capture_by, _node_id, ref block) => { let mover = if capture_by == ast::CaptureBy::Value { "move " -- cgit 1.4.1-3-g733a5