提交 ff885988 编写于 作者: S Steve Klabnik

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.
......@@ -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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册