diff options
| author | Vitaly _Vi Shukela <vi0oss@gmail.com> | 2018-09-15 03:18:29 +0300 |
|---|---|---|
| committer | Vitaly _Vi Shukela <vi0oss@gmail.com> | 2018-09-16 21:42:46 +0300 |
| commit | b6fea3255c0954456b068db8d1cdb6af464dd651 (patch) | |
| tree | 91c30f2be1b21f795904575a622a658da25e5443 /src/libsyntax/parse | |
| parent | d3cba9b4b4959d63eaaf5ffd647e4a5fc6d43e17 (diff) | |
| download | rust-b6fea3255c0954456b068db8d1cdb6af464dd651.tar.gz rust-b6fea3255c0954456b068db8d1cdb6af464dd651.zip | |
Remove usages of span_suggestion without Applicability
Use Applicability::Unspecified for all of them instead.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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; |
