Remove unused impls from some subdiagnostics.

This commit is contained in:
Nicholas Nethercote 2024-03-06 17:14:56 +11:00
parent 4e38ef9e1a
commit 256d802233
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ pub struct GenericTypeWithParentheses {
pub sub: Option<UseAngleBrackets>, pub sub: Option<UseAngleBrackets>,
} }
#[derive(Clone, Copy, Subdiagnostic)] #[derive(Subdiagnostic)]
#[multipart_suggestion(ast_lowering_use_angle_brackets, applicability = "maybe-incorrect")] #[multipart_suggestion(ast_lowering_use_angle_brackets, applicability = "maybe-incorrect")]
pub struct UseAngleBrackets { pub struct UseAngleBrackets {
#[suggestion_part(code = "<")] #[suggestion_part(code = "<")]
@ -72,7 +72,7 @@ pub struct AssocTyParentheses {
pub sub: AssocTyParenthesesSub, pub sub: AssocTyParenthesesSub,
} }
#[derive(Clone, Copy, Subdiagnostic)] #[derive(Subdiagnostic)]
pub enum AssocTyParenthesesSub { pub enum AssocTyParenthesesSub {
#[multipart_suggestion(ast_lowering_remove_parentheses)] #[multipart_suggestion(ast_lowering_remove_parentheses)]
Empty { Empty {

View file

@ -239,7 +239,7 @@ pub(crate) struct NonConstImplNote {
pub span: Span, pub span: Span,
} }
#[derive(Subdiagnostic, PartialEq, Eq, Clone)] #[derive(Subdiagnostic, Clone)]
#[note(const_eval_frame_note)] #[note(const_eval_frame_note)]
pub struct FrameNote { pub struct FrameNote {
#[primary_span] #[primary_span]