diff options
| author | bors <bors@rust-lang.org> | 2022-11-06 08:13:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-06 08:13:56 +0000 |
| commit | 88935e0beacb49bb552de1628bdf50b183f7b926 (patch) | |
| tree | 2d3b300a5e7651b7fa31bef99a1527912730670e /compiler/rustc_parse/src/errors.rs | |
| parent | e30fb6a26f1ac406a346cbf79b41c92e84703a28 (diff) | |
| parent | 619add319fceb06e93faac6f4a274240dc4124c6 (diff) | |
| download | rust-88935e0beacb49bb552de1628bdf50b183f7b926.tar.gz rust-88935e0beacb49bb552de1628bdf50b183f7b926.zip | |
Auto merge of #104043 - matthiaskrgr:rollup-sttf9e8, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #103012 (Suggest use .. to fill in the rest of the fields of Struct) - #103851 (Fix json flag in bootstrap doc) - #103990 (rustdoc: clean up `.logo-container` layout CSS) - #104002 (fix a comment in UnsafeCell::new) - #104014 (Migrate test-arrow to CSS variables) - #104016 (Add internal descriptions to a few queries) - #104035 (Add 'closure match' test to weird-exprs.rs.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index dc204902842..0924c853715 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -369,6 +369,15 @@ pub(crate) struct MissingSemicolonBeforeArray { } #[derive(Diagnostic)] +#[diag(parser_expect_dotdot_not_dotdotdot)] +pub(crate) struct MissingDotDot { + #[primary_span] + pub token_span: Span, + #[suggestion(applicability = "maybe-incorrect", code = "..", style = "verbose")] + pub sugg_span: Span, +} + +#[derive(Diagnostic)] #[diag(parser_invalid_block_macro_segment)] pub(crate) struct InvalidBlockMacroSegment { #[primary_span] |
