Skip to content

Commit 256d802

Browse files
committed
Remove unused impls from some subdiagnostics.
1 parent 4e38ef9 commit 256d802

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_ast_lowering/src/errors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct GenericTypeWithParentheses {
1414
pub sub: Option<UseAngleBrackets>,
1515
}
1616

17-
#[derive(Clone, Copy, Subdiagnostic)]
17+
#[derive(Subdiagnostic)]
1818
#[multipart_suggestion(ast_lowering_use_angle_brackets, applicability = "maybe-incorrect")]
1919
pub struct UseAngleBrackets {
2020
#[suggestion_part(code = "<")]
@@ -72,7 +72,7 @@ pub struct AssocTyParentheses {
7272
pub sub: AssocTyParenthesesSub,
7373
}
7474

75-
#[derive(Clone, Copy, Subdiagnostic)]
75+
#[derive(Subdiagnostic)]
7676
pub enum AssocTyParenthesesSub {
7777
#[multipart_suggestion(ast_lowering_remove_parentheses)]
7878
Empty {

compiler/rustc_const_eval/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub(crate) struct NonConstImplNote {
239239
pub span: Span,
240240
}
241241

242-
#[derive(Subdiagnostic, PartialEq, Eq, Clone)]
242+
#[derive(Subdiagnostic, Clone)]
243243
#[note(const_eval_frame_note)]
244244
pub struct FrameNote {
245245
#[primary_span]

0 commit comments

Comments
 (0)