about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-05-31 13:34:07 +0200
committerGitHub <noreply@github.com>2019-05-31 13:34:07 +0200
commite36b90752ceef81c6fdff3b6cac36878cf29ee6f (patch)
treeb2113a61391177e9ad76a7131e34dc2cef3d1921 /src/libsyntax/parse
parentf100dfbb3efb4f58426e108b8b79a72f5b0c5135 (diff)
parent4c5eb8ecfc1accda036053d50c8c44b3c5eebb3b (diff)
downloadrust-e36b90752ceef81c6fdff3b6cac36878cf29ee6f.tar.gz
rust-e36b90752ceef81c6fdff3b6cac36878cf29ee6f.zip
Rollup merge of #61374 - VirrageS:master, r=Centril
Explicitly suggest 'type_ascription' feature

Closes: #61325

r? @estebank
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/diagnostics.rs b/src/libsyntax/parse/diagnostics.rs
index b3d49524d76..2e4d4c09139 100644
--- a/src/libsyntax/parse/diagnostics.rs
+++ b/src/libsyntax/parse/diagnostics.rs
@@ -858,8 +858,8 @@ impl<'a> Parser<'a> {
                     Applicability::MaybeIncorrect,
                 );
             } else {
-                err.note("type ascription is a nightly-only feature that lets \
-                          you annotate an expression with a type: `<expr>: <type>`")
+                err.note("#![feature(type_ascription)] lets you annotate an \
+                          expression with a type: `<expr>: <type>`")
                     .span_note(
                         lhs_span,
                         "this expression expects an ascribed type after the colon",