diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-12 20:56:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-12 20:56:22 +0200 |
| commit | a34bcd70b2ca1ba7fb60fe0cbd1cbfd5fa57a089 (patch) | |
| tree | 80ecf040f8c30f8ee3dc617d64712c6d1596104c /compiler/rustc_parse/src/errors.rs | |
| parent | b4734f01fee9fd34f80e0516798e70e8e5666533 (diff) | |
| parent | 24cbf81b8546beb8193217316acf4ded4117b4af (diff) | |
| download | rust-a34bcd70b2ca1ba7fb60fe0cbd1cbfd5fa57a089.tar.gz rust-a34bcd70b2ca1ba7fb60fe0cbd1cbfd5fa57a089.zip | |
Rollup merge of #110203 - compiler-errors:rtn-dots, r=eholk
Remove `..` from return type notation `@nikomatsakis` and I decided that using `..` in the return-type notation syntax is probably overkill. r? `@eholk` since you reviewed the last one Since this is piggybacking now totally off of a pre-existing syntax (parenthesized generics), let me know if you need any explanation of the logic here, since it's a bit more complicated now.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index aead216b61c..069217165fa 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -2324,3 +2324,11 @@ pub(crate) struct BadReturnTypeNotationOutput { #[suggestion(code = "", applicability = "maybe-incorrect")] pub span: Span, } + +#[derive(Diagnostic)] +#[diag(parse_bad_return_type_notation_dotdot)] +pub(crate) struct BadReturnTypeNotationDotDot { + #[primary_span] + #[suggestion(code = "", applicability = "maybe-incorrect")] + pub span: Span, +} |
