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`).
This commit is contained in:
bors 2017-08-17 03:42:26 +00:00
commit e407206534

View File

@ -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 {