Skip to content

Commit

Permalink
Auto merge of #43867 - GuillaumeGomez:useless-help, r=nikomatsakis
Browse files Browse the repository at this point in the history
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`).
  • Loading branch information
bors committed Aug 17, 2017
2 parents be0f77d + 3af0e4a commit e407206
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc_typeck/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e407206

Please sign in to comment.