Skip to content

Commit ff88598

Browse files
committed
Rollup merge of #29933 - tbu-:pr_dont_opt_in_copy, r=nikomatsakis
It was introduced with the change that made copy opt-in. The implementation gives a warning, because the struct contains a raw pointer.
2 parents d0ca581 + c5971a2 commit ff88598

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc_llvm/diagnostic.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ impl OptimizationDiagnosticKind {
3737
}
3838
}
3939

40-
#[derive(Copy, Clone)]
4140
pub struct OptimizationDiagnostic {
4241
pub kind: OptimizationDiagnosticKind,
4342
pub pass_name: *const c_char,
@@ -94,7 +93,6 @@ impl InlineAsmDiagnostic {
9493
}
9594
}
9695

97-
#[derive(Copy, Clone)]
9896
pub enum Diagnostic {
9997
Optimization(OptimizationDiagnostic),
10098
InlineAsm(InlineAsmDiagnostic),

0 commit comments

Comments
 (0)