about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-17 03:42:26 +0000
committerbors <bors@rust-lang.org>2017-08-17 03:42:26 +0000
commite4072065345fb33ee6f4ada8cb127a2f0cade7ce (patch)
treea2c3786bb998331acd6a35e266a3bfb535098795
parentbe0f77dc8a12c40c184a47e5d51ec9001c4bd360 (diff)
parent3af0e4a2ad40253b67e5259b6cb0a5b6c289d3e9 (diff)
downloadrust-e4072065345fb33ee6f4ada8cb127a2f0cade7ce.tar.gz
rust-e4072065345fb33ee6f4ada8cb127a2f0cade7ce.zip
Auto merge of #43867 - GuillaumeGomez:useless-help, r=nikomatsakis
Remove useless help part

Part of #32658.

I think this error should be splitted into two parts, each more specific (`anonymous function` vs `type method`).
-rw-r--r--src/librustc_typeck/check/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index bc03c925417..2489a8c6941 100644
--- a/src/librustc_typeck/check/mod.rs
+++ b/src/librustc_typeck/check/mod.rs
@@ -2968,8 +2968,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
             type_error_struct!(self.tcx().sess, field.span, expr_t, E0615,
                               "attempted to take value of method `{}` on type `{}`",
                               field.node, expr_t)
-                .help("maybe a `()` to call it is missing? \
-                       If not, try an anonymous function")
+                .help("maybe a `()` to call it is missing?")
                 .emit();
             self.tcx().types.err
         } else {