summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-05-08 23:41:32 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-05-08 23:45:26 +0200
commit31e440917cdc8ac57cd69ddf929e90a7c4b46367 (patch)
treebec52d4264d736917634dad523c780ffedfcee34 /src/codegen/mod.rs
parent2d88dd106bf33807679f531051546f3c9889161e (diff)
codegen: Make phantom fields public.v0.25.0
Otherwise you can't construct structs outside of the bindings file, which is breaking. Also, given the previous change was breaking and I didn't notice, I yanked 0.24.1.
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r--src/codegen/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs
index 7f0a822a..6f9685b5 100644
--- a/src/codegen/mod.rs
+++ b/src/codegen/mod.rs
@@ -1477,6 +1477,7 @@ impl CodeGenerator for CompInfo {
ctx.ext_cx(),
::$prefix::marker::PhantomData<::$prefix::cell::UnsafeCell<$ident>>);
let phantom_field = StructFieldBuilder::named(format!("_phantom_{}", idx))
+ .pub_()
.build_ty(phantom_ty);
fields.push(phantom_field);
}