diff options
| author | bors <bors@rust-lang.org> | 2017-08-17 03:42:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-08-17 03:42:26 +0000 |
| commit | e4072065345fb33ee6f4ada8cb127a2f0cade7ce (patch) | |
| tree | a2c3786bb998331acd6a35e266a3bfb535098795 | |
| parent | be0f77dc8a12c40c184a47e5d51ec9001c4bd360 (diff) | |
| parent | 3af0e4a2ad40253b67e5259b6cb0a5b6c289d3e9 (diff) | |
| download | rust-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.rs | 3 |
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 { |
