From 90040508478f4551eb303a5056026fd59bb0cdc6 Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Wed, 17 Apr 2024 07:23:15 -0300 Subject: allow DataVariable and NameAndType to be transmutable --- rust/src/rc.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'rust/src/rc.rs') 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> + 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 { contents: T, } -- cgit v1.3.1