From 2b7776094492bcdb9ecf62f5333b719f30ffce1f Mon Sep 17 00:00:00 2001 From: Vitaly _Vi Shukela Date: Mon, 17 Sep 2018 03:16:08 +0300 Subject: Fill in suggestions Applicability according to @estebank Also fix some formatting along the way. --- src/libsyntax/parse/parser.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 458a5c6473f..18287189539 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3882,11 +3882,12 @@ impl<'a> Parser<'a> { if self.token == token::CloseDelim(token::Brace) { // If the struct looks otherwise well formed, recover and continue. if let Some(sp) = comma_sp { - err.span_suggestion_short_with_applicability(sp, - "remove this comma", - String::new(), - Applicability::Unspecified, - ); + err.span_suggestion_short_with_applicability( + sp, + "remove this comma", + String::new(), + Applicability::MachineApplicable, + ); } err.emit(); break; -- cgit 1.4.1-3-g733a5