From b6fea3255c0954456b068db8d1cdb6af464dd651 Mon Sep 17 00:00:00 2001 From: Vitaly _Vi Shukela Date: Sat, 15 Sep 2018 03:18:29 +0300 Subject: Remove usages of span_suggestion without Applicability Use Applicability::Unspecified for all of them instead. --- src/libsyntax/parse/parser.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 48e034b117f..458a5c6473f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3882,7 +3882,11 @@ 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(sp, "remove this comma", String::new()); + err.span_suggestion_short_with_applicability(sp, + "remove this comma", + String::new(), + Applicability::Unspecified, + ); } err.emit(); break; -- cgit 1.4.1-3-g733a5