diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-03 04:08:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-03 04:08:14 +0200 |
| commit | faf2e8087c54d2a778e293f093a34fa18f48f0f2 (patch) | |
| tree | d9e1ff20f5438bb7af5e302dfb19911b9742c1f2 /src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs | |
| parent | 17b1fd1a8f1cdb9fbe1220aa5f7d8d568be6b4aa (diff) | |
| parent | 2537a8aa7a44d76b3345b98f394f6d2744f3a9cc (diff) | |
| download | rust-faf2e8087c54d2a778e293f093a34fa18f48f0f2.tar.gz rust-faf2e8087c54d2a778e293f093a34fa18f48f0f2.zip | |
Rollup merge of #64959 - davidtwco:issue-64252-self-type-help, r=Centril,estebank
syntax: improve parameter without type suggestions Fixes #64252. This PR improves the suggestions provided when function parameters do not have types: - A new suggestion is added for arbitrary self types, which suggests adding `self: ` before the type. - Existing suggestions are now provided when a `<` is found where a `:` was expected (previously only `,` and `)` or trait items), this gives suggestions in the case where the unnamed parameter type is generic in a free function. - The suggestion that a type name be provided (e.g. `fn foo(HashMap<u32>)` -> `fn foo(HashMap: TypeName<u32>)`) will no longer occur when a `<` was found instead of `:`. - The ident will not be used for recovery when a `<` was found instead of `:`. r? @Centril cc @estebank @yoshuawuyts
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs')
0 files changed, 0 insertions, 0 deletions
