diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-08-13 22:10:54 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-08-13 22:10:54 +0900 |
| commit | d47df26784355eaa4006eee60f262c6035fea307 (patch) | |
| tree | ac07e53c813c2d45bae313db12beceab54a13d14 /compiler/rustc_parse/src/parser | |
| parent | 48c0341a7081bb74bb4635529a94298b9be4b459 (diff) | |
| download | rust-d47df26784355eaa4006eee60f262c6035fea307.tar.gz rust-d47df26784355eaa4006eee60f262c6035fea307.zip | |
use `span_suggestion` instead of `span_suggestion_verbose`
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 8f4edf6ce48..8f58bce8890 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -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", "", |
