]> git.lizzy.rs Git - rust.git/commitdiff
Remove unneeded `#[derive(Copy)]`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 19 Nov 2015 16:00:54 +0000 (16:00 +0000)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 19 Nov 2015 16:00:54 +0000 (16:00 +0000)
It was introduced with the change that made copy opt-in. The
implementation gives a warning, because the struct contains a raw
pointer.

src/librustc_llvm/diagnostic.rs

index c09048d677e81e3be2b01208bb690dee4f306624..acb47516150cfbbad518f8ab63cf9834a356c374 100644 (file)
@@ -37,7 +37,6 @@ pub fn describe(self) -> &'static str {
     }
 }
 
-#[derive(Copy, Clone)]
 pub struct OptimizationDiagnostic {
     pub kind: OptimizationDiagnosticKind,
     pub pass_name: *const c_char,
@@ -94,7 +93,6 @@ unsafe fn unpack(di: DiagnosticInfoRef)
     }
 }
 
-#[derive(Copy, Clone)]
 pub enum Diagnostic {
     Optimization(OptimizationDiagnostic),
     InlineAsm(InlineAsmDiagnostic),