summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-02-05 15:41:29 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-02-07 01:42:54 -0800
commit336c48cc7b76865ca0d8608c89831d2669a8e368 (patch)
tree41944b4f339404da36a36436572a6d1dfb7555d4 /src/test/ui/parser
parentcba96613de1c6e3978dbb39ef689cf997cef0ac0 (diff)
downloadrust-336c48cc7b76865ca0d8608c89831d2669a8e368.tar.gz
rust-336c48cc7b76865ca0d8608c89831d2669a8e368.zip
tweak wording based on in person feedback
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/issue-10636-2.stderr2
-rw-r--r--src/test/ui/parser/issue-2354.rs3
-rw-r--r--src/test/ui/parser/issue-2354.stderr7
3 files changed, 5 insertions, 7 deletions
diff --git a/src/test/ui/parser/issue-10636-2.stderr b/src/test/ui/parser/issue-10636-2.stderr
index 670a116eb51..38d57ce5723 100644
--- a/src/test/ui/parser/issue-10636-2.stderr
+++ b/src/test/ui/parser/issue-10636-2.stderr
@@ -5,7 +5,7 @@ LL |     option.map(|some| 42;
    |               -         ^
    |               |         |
    |               |         help: `)` may belong here
-   |               in order to close this...
+   |               unclosed delimiter
 
 error: expected expression, found `)`
   --> $DIR/issue-10636-2.rs:8:1
diff --git a/src/test/ui/parser/issue-2354.rs b/src/test/ui/parser/issue-2354.rs
index b383bc00f91..565f84822f7 100644
--- a/src/test/ui/parser/issue-2354.rs
+++ b/src/test/ui/parser/issue-2354.rs
@@ -1,5 +1,4 @@
-fn foo() {
-  //~^ NOTE un-closed delimiter
+fn foo() { //~ NOTE un-closed delimiter
   match Some(10) {
   //~^ NOTE this delimiter might not be properly closed...
       Some(y) => { panic!(); }
diff --git a/src/test/ui/parser/issue-2354.stderr b/src/test/ui/parser/issue-2354.stderr
index f1b0905d866..0f4cd5724ce 100644
--- a/src/test/ui/parser/issue-2354.stderr
+++ b/src/test/ui/parser/issue-2354.stderr
@@ -1,9 +1,8 @@
 error: this file contains an un-closed delimiter
-  --> $DIR/issue-2354.rs:16:66
+  --> $DIR/issue-2354.rs:15:66
    |
-LL | fn foo() {
+LL | fn foo() { //~ NOTE un-closed delimiter
    |          - un-closed delimiter
-LL |   //~^ NOTE un-closed delimiter
 LL |   match Some(10) {
    |                  - this delimiter might not be properly closed...
 ...
@@ -17,7 +16,7 @@ error[E0601]: `main` function not found in crate `issue_2354`
    |
    = note: the main function must be defined at the crate level but you have one or more functions named 'main' that are not defined at the crate level. Either move the definition or attach the `#[main]` attribute to override this behavior.
 note: here is a function named 'main'
-  --> $DIR/issue-2354.rs:15:1
+  --> $DIR/issue-2354.rs:14:1
    |
 LL | fn main() {} //~ NOTE here is a function named 'main'
    | ^^^^^^^^^^^^