about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-03-22 20:14:20 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-03-22 20:14:20 -0700
commitd72ef21ddd4d56b3ec169a5ed64fa4cbf778c5c8 (patch)
tree0e7faa5ac8820f8b4ca6c9d6df421b784f1a7ed7 /src/libsyntax/parse
parent44a086ef39b2a6e6ed231869a5166bec7c4b7511 (diff)
downloadrust-d72ef21ddd4d56b3ec169a5ed64fa4cbf778c5c8.tar.gz
rust-d72ef21ddd4d56b3ec169a5ed64fa4cbf778c5c8.zip
Reword type ascription note to reduce verbosity
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index d5b64eaaef5..ea81094a996 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3708,11 +3708,7 @@ impl<'a> Parser<'a> {
                           you annotate an expression with a type: `<expr>: <type>`");
                 err.span_note(
                     lhs_span,
-                    "this expression is annotated with type ascription...",
-                );
-                err.span_note(
-                    cur_op_span,
-                    "...due to this, which is why a type is expected after",
+                    "this expression expects an ascribed type after the colon",
                 );
                 err.help("this might be indicative of a syntax error elsewhere");
             }