diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2025-08-15 23:01:32 +0200 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2025-08-16 16:15:58 +0200 |
| commit | f8f7c27d4f723913a6929e591c612865a7b62f70 (patch) | |
| tree | be984feaa6d5e72b0a79f23a7ae05a2bc642aea8 /compiler/rustc_parse/src/errors.rs | |
| parent | eb3e0d4c8a5599db0a4624662e5ab59380be8cd2 (diff) | |
| download | rust-f8f7c27d4f723913a6929e591c612865a7b62f70.tar.gz rust-f8f7c27d4f723913a6929e591c612865a7b62f70.zip | |
Clean up parsers related to generic bounds
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index ddb2c545c78..6690025ef89 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -3136,27 +3136,6 @@ pub(crate) struct ModifierLifetime { pub modifier: &'static str, } -#[derive(Subdiagnostic)] -#[multipart_suggestion( - parse_parenthesized_lifetime_suggestion, - applicability = "machine-applicable" -)] -pub(crate) struct RemoveParens { - #[suggestion_part(code = "")] - pub lo: Span, - #[suggestion_part(code = "")] - pub hi: Span, -} - -#[derive(Diagnostic)] -#[diag(parse_parenthesized_lifetime)] -pub(crate) struct ParenthesizedLifetime { - #[primary_span] - pub span: Span, - #[subdiagnostic] - pub sugg: RemoveParens, -} - #[derive(Diagnostic)] #[diag(parse_underscore_literal_suffix)] pub(crate) struct UnderscoreLiteralSuffix { |
