Rollup merge of #68981 - estebank:silence, r=davidtwco

Account for type params on method without parentheses

Account for those type parameters in the structured suggestion when forgetting to call method:

```
error[E0615]: attempted to take value of method `collect` on type `std::vec::IntoIter<_>`
  --> $DIR/method-missing-parentheses.rs:2:32
   |
LL |     let _ = vec![].into_iter().collect::<usize>;
   |                                ^^^^^^^---------
   |                                |
   |                                help: use parentheses to call the method: `collect::<usize>()`
```
This commit is contained in:
Dylan DPC 2020-02-12 20:36:53 +01:00 committed by GitHub
commit 2a3c1a30c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 44 additions and 14 deletions

View file

@ -823,7 +823,7 @@ impl<'a> Parser<'a> {
if let Some(args) = segment.args {
self.struct_span_err(
args.span(),
"field expressions may not have generic arguments",
"field expressions cannot have generic arguments",
)
.emit();
}