summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}