about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-23 18:13:20 +0000
committerbors <bors@rust-lang.org>2017-07-23 18:13:20 +0000
commitf3e26a02ebc64d4593d42d6fbcea844e03cd7ad6 (patch)
tree3f3c3681068646aabe7ec27808ccb6e3a63e0426 /src/libsyntax/parse
parent6270257f4ef6e65213631d6b5a2a85807b8b2364 (diff)
parent401ab612c26d7568f949f2f26710283cd05ca761 (diff)
downloadrust-f3e26a02ebc64d4593d42d6fbcea844e03cd7ad6.tar.gz
rust-f3e26a02ebc64d4593d42d6fbcea844e03cd7ad6.zip
Auto merge of #43386 - oli-obk:suggestions, r=nikomatsakis
Adjust new suggestions to the suggestion guidelines

Addresses https://github.com/rust-lang/rust/pull/42033#discussion_r127694915

guidelines are https://github.com/rust-lang/rust/blob/master//src/librustc_errors/diagnostic.rs#L212-L224
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 553cac80d82..01b72343b5d 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2936,7 +2936,7 @@ impl<'a> Parser<'a> {
                         let expr_str = self.sess.codemap().span_to_snippet(expr.span)
                                                 .unwrap_or(pprust::expr_to_string(&expr));
                         err.span_suggestion(expr.span,
-                                            "if you want to compare the casted value then write:",
+                                            "try comparing the casted value",
                                             format!("({})", expr_str));
                         err.emit();