diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-27 14:00:05 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-27 14:00:05 +0100 |
commit | 1bdd1a50d50d7679e02d283043a7edcd20e948a8 (patch) | |
tree | fb054a567537a5cf3f3d7f508c23ee32f21323ab /src/codegen/mod.rs | |
parent | 7bfb5a52ea3ec9099068162efc45f8e3e50c2989 (diff) |
codegen: Derive stuff in forward declarations.
So Rust is happy when you use them in template parameters, since the Derive
implementations can't catch this otherwise.
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r-- | src/codegen/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs index 3a5ae690..db17a3d1 100644 --- a/src/codegen/mod.rs +++ b/src/codegen/mod.rs @@ -775,6 +775,7 @@ impl CodeGenerator for CompInfo { let struct_name = ctx.rust_ident_raw(&struct_name); let tuple_struct = quote_item!(ctx.ext_cx(), #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct $struct_name([u8; 0]); ) .unwrap(); |