From c5971a29da58f28901d2958b155e0f2cdb537690 Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Thu, 19 Nov 2015 16:00:54 +0000 Subject: [PATCH] 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. --- src/librustc_llvm/diagnostic.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/librustc_llvm/diagnostic.rs b/src/librustc_llvm/diagnostic.rs index c09048d677e81..acb47516150cf 100644 --- a/src/librustc_llvm/diagnostic.rs +++ b/src/librustc_llvm/diagnostic.rs @@ -37,7 +37,6 @@ impl OptimizationDiagnosticKind { } } -#[derive(Copy, Clone)] pub struct OptimizationDiagnostic { pub kind: OptimizationDiagnosticKind, pub pass_name: *const c_char, @@ -94,7 +93,6 @@ impl InlineAsmDiagnostic { } } -#[derive(Copy, Clone)] pub enum Diagnostic { Optimization(OptimizationDiagnostic), InlineAsm(InlineAsmDiagnostic),