]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #98119 - EdwinRy:path-parenthesized-type-error, r=estebank
authorYuki Okushi <jtitor@2k36.org>
Wed, 15 Jun 2022 22:24:43 +0000 (07:24 +0900)
committerGitHub <noreply@github.com>
Wed, 15 Jun 2022 22:24:43 +0000 (07:24 +0900)
Refactor path segment parameter error

This PR attempts to rewrite the error handling for an unexpected parenthesised type parameters to:
- Use provided data instead of re-parsing the whole span
- Add a multipart suggestion to reflect on the changes with an underline
- Remove the unnecessary "if" nesting


Trivial merge