about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-18 18:44:14 +0200
committerGitHub <noreply@github.com>2024-05-18 18:44:14 +0200
commitf9bf759e833f21edfa99ea63cc0fc57cf575227e (patch)
tree74d86b5fe2e6c5009e723cf0367b7aee2ae6de71 /tests
parent685a80f7a0935c8e5016d8c9cd491937af155dd0 (diff)
parentf8433a82b4a4120e34de236a68d0cfeaea6e60c3 (diff)
downloadrust-f9bf759e833f21edfa99ea63cc0fc57cf575227e.tar.gz
rust-f9bf759e833f21edfa99ea63cc0fc57cf575227e.zip
Rollup merge of #125117 - dev-ardi:improve-parser, r=wesleywiser,fmease
Improve parser

Fixes #124935.

- Add a few more help diagnostics to incorrect semicolons
- Overall improved that function
- Addded a few comments
- Renamed diff_marker fns to git_diff_marker
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr b/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr
index fee83eb5c18..e068fdb5aba 100644
--- a/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr
+++ b/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr
@@ -3,6 +3,8 @@ error: expected item, found `;`
    |
 LL | mod M {};
    |         ^ help: remove this semicolon
+   |
+   = help: module declarations are not followed by a semicolon
 
 error: expected item, found `;`
   --> $DIR/recover-from-semicolon-trailing-item.rs:4:12
@@ -17,6 +19,8 @@ error: expected item, found `;`
    |
 LL | fn foo(a: usize) {};
    |                    ^ help: remove this semicolon
+   |
+   = help: function declarations are not followed by a semicolon
 
 error[E0308]: mismatched types
   --> $DIR/recover-from-semicolon-trailing-item.rs:10:20