diff --git a/src/libextra/rc.rs b/src/libextra/rc.rs index 8ef58a188d930..5b1451387e7ad 100644 --- a/src/libextra/rc.rs +++ b/src/libextra/rc.rs @@ -36,6 +36,7 @@ struct RcBox { /// Immutable reference counted pointer type #[non_owned] +#[unsafe_no_drop_flag] pub struct Rc { priv ptr: *mut RcBox, } @@ -168,6 +169,7 @@ struct RcMutBox { /// Mutable reference counted pointer type #[non_owned] #[mutable] +#[unsafe_no_drop_flag] pub struct RcMut { priv ptr: *mut RcMutBox, }