From d66d35bb9184b7f3a4e155386ca44410c0d09ff2 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Wed, 30 May 2018 11:04:39 -0700 Subject: Account for comma in suggestion --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index fb2aa0e9d5a..d1529347ee0 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3868,7 +3868,7 @@ impl<'a> Parser<'a> { "move the `..` to the end of the field list", vec![ (etc_span, "".into()), - (self.span, ", .. }".into()), + (self.span, format!("{}.. }}", if ate_comma { "" } else { ", " })), ], ); } -- cgit 1.4.1-3-g733a5