1
Fork 0

use span_suggestion instead of span_suggestion_verbose

This commit is contained in:
Takayuki Maeda 2022-08-13 22:10:54 +09:00
parent 48c0341a70
commit d47df26784
2 changed files with 5 additions and 8 deletions

View file

@ -700,7 +700,7 @@ impl<'a> Parser<'a> {
.span_label(non_item_span, "non-item starts here")
.span_label(self.prev_token.span, "item list ends here");
if is_unnecessary_semicolon {
err.span_suggestion_verbose(
err.span_suggestion(
semicolon_span,
"consider removing this semicolon",
"",