Remove usages of span_suggestion without Applicability
Use Applicability::Unspecified for all of them instead.
This commit is contained in:
parent
d3cba9b4b4
commit
b6fea3255c
18 changed files with 107 additions and 50 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue