about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorVitaly _Vi Shukela <vi0oss@gmail.com>2018-09-17 03:16:08 +0300
committerVitaly _Vi Shukela <vi0oss@gmail.com>2018-09-17 03:20:08 +0300
commit2b7776094492bcdb9ecf62f5333b719f30ffce1f (patch)
tree6d1cae430c70c79ed8aa945f5faf6cf786506e3b /src/libsyntax/parse
parentc61f4a71448f817848059e5c0942d14d14c929b6 (diff)
downloadrust-2b7776094492bcdb9ecf62f5333b719f30ffce1f.tar.gz
rust-2b7776094492bcdb9ecf62f5333b719f30ffce1f.zip
Fill in suggestions Applicability according to @estebank
Also fix some formatting along the way.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs11
1 files changed, 6 insertions, 5 deletions
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;