Remove unneeded #[derive(Copy)]
It was introduced with the change that made copy opt-in. The implementation gives a warning, because the struct contains a raw pointer.
This commit is contained in:
parent
28f6b88978
commit
c5971a29da
@ -37,7 +37,6 @@ impl OptimizationDiagnosticKind {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
|
||||||
pub struct OptimizationDiagnostic {
|
pub struct OptimizationDiagnostic {
|
||||||
pub kind: OptimizationDiagnosticKind,
|
pub kind: OptimizationDiagnosticKind,
|
||||||
pub pass_name: *const c_char,
|
pub pass_name: *const c_char,
|
||||||
@ -94,7 +93,6 @@ impl InlineAsmDiagnostic {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
|
||||||
pub enum Diagnostic {
|
pub enum Diagnostic {
|
||||||
Optimization(OptimizationDiagnostic),
|
Optimization(OptimizationDiagnostic),
|
||||||
InlineAsm(InlineAsmDiagnostic),
|
InlineAsm(InlineAsmDiagnostic),
|
||||||
|
Loading…
Reference in New Issue
Block a user