about summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorRussell Cohen <russell.r.cohen@gmail.com>2020-03-29 11:12:48 -0400
committerRussell Cohen <russell.r.cohen@gmail.com>2020-03-29 11:12:48 -0400
commitc15f86b4b35a260b105dc472fc6e3556af8a8db0 (patch)
treee443a3ca5dcb215a8ff27887c5cb19da2b83201d /src/test/ui/parser
parent629e97a5a02edb3d8dc63c5157962c093217d441 (diff)
downloadrust-c15f86b4b35a260b105dc472fc6e3556af8a8db0.tar.gz
rust-c15f86b4b35a260b105dc472fc6e3556af8a8db0.zip
Cleanup error messages, improve docstrings
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/raw/raw-byte-string-eof.stderr2
-rw-r--r--src/test/ui/parser/raw/raw-str-unbalanced.stderr4
-rw-r--r--src/test/ui/parser/raw/raw_string.stderr2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/parser/raw/raw-byte-string-eof.stderr b/src/test/ui/parser/raw/raw-byte-string-eof.stderr
index 81344841c27..a76668e8051 100644
--- a/src/test/ui/parser/raw/raw-byte-string-eof.stderr
+++ b/src/test/ui/parser/raw/raw-byte-string-eof.stderr
@@ -2,7 +2,7 @@ error[E0748]: unterminated raw string
   --> $DIR/raw-byte-string-eof.rs:2:5
    |
 LL |     br##"a"#;
-   |     ^      - help: you might have intended to terminate the string here: `##`
+   |     ^      - help: consider terminating the string here: `##`
    |     |
    |     unterminated raw string
    |
diff --git a/src/test/ui/parser/raw/raw-str-unbalanced.stderr b/src/test/ui/parser/raw/raw-str-unbalanced.stderr
index 891f1d6337c..bf8f3a7a5a4 100644
--- a/src/test/ui/parser/raw/raw-str-unbalanced.stderr
+++ b/src/test/ui/parser/raw/raw-str-unbalanced.stderr
@@ -2,9 +2,9 @@ error: too many `#` when terminating raw string
   --> $DIR/raw-str-unbalanced.rs:3:9
    |
 LL |       "##
-   |         ^ help: Remove the extra `#`
+   |         ^ help: remove the extra `#`
    |
-   = note: The raw string started with 1 `#`s
+   = note: the raw string started with 1 `#`s
 
 error: aborting due to previous error
 
diff --git a/src/test/ui/parser/raw/raw_string.stderr b/src/test/ui/parser/raw/raw_string.stderr
index e91a16bedc4..cc0eb492700 100644
--- a/src/test/ui/parser/raw/raw_string.stderr
+++ b/src/test/ui/parser/raw/raw_string.stderr
@@ -2,7 +2,7 @@ error[E0748]: unterminated raw string
   --> $DIR/raw_string.rs:2:13
    |
 LL |     let x = r##"lol"#;
-   |             ^       - help: you might have intended to terminate the string here: `##`
+   |             ^       - help: consider terminating the string here: `##`
    |             |
    |             unterminated raw string
    |