summaryrefslogtreecommitdiff
path: root/rust/src/rc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/rc.rs')
-rw-r--r--rust/src/rc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/src/rc.rs b/rust/src/rc.rs
index cdcae179..91e51565 100644
--- a/rust/src/rc.rs
+++ b/rust/src/rc.rs
@@ -43,6 +43,7 @@ pub unsafe trait RefCountable: ToOwned<Owned = Ref<Self>> + Sized {
// Represents an 'owned' reference tracked by the core
// that we are responsible for cleaning up once we're
// done with the encapsulated value.
+#[repr(transparent)]
pub struct Ref<T: RefCountable> {
contents: T,
}