summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-05-08 16:47:23 -0500
committerGitHub <noreply@github.com>2017-05-08 16:47:23 -0500
commit18b7e62c9f424cc2a0b633396fd0dfcd36c3e80f (patch)
treebec52d4264d736917634dad523c780ffedfcee34 /src/codegen/mod.rs
parent2d88dd106bf33807679f531051546f3c9889161e (diff)
parent31e440917cdc8ac57cd69ddf929e90a7c4b46367 (diff)
Auto merge of #693 - emilio:pub-phantom, r=fitzgen
codegen: Make phantom fields public. 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);
}