rc: add missing #[unsafe_no_drop_flag]

The destructors were updated in d9f6dd263c
but this was accidentally left out.
This commit is contained in:
Daniel Micay 2013-06-27 16:45:09 -04:00
parent 6b2297d118
commit 5fccce4051

View File

@ -36,6 +36,7 @@ struct RcBox<T> {
/// Immutable reference counted pointer type
#[non_owned]
#[unsafe_no_drop_flag]
pub struct Rc<T> {
priv ptr: *mut RcBox<T>,
}
@ -168,6 +169,7 @@ struct RcMutBox<T> {
/// Mutable reference counted pointer type
#[non_owned]
#[mutable]
#[unsafe_no_drop_flag]
pub struct RcMut<T> {
priv ptr: *mut RcMutBox<T>,
}