Skip to content

Commit 5fccce4

Browse files
committed
rc: add missing #[unsafe_no_drop_flag]
The destructors were updated in d9f6dd2 but this was accidentally left out.
1 parent 6b2297d commit 5fccce4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libextra/rc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ struct RcBox<T> {
3636

3737
/// Immutable reference counted pointer type
3838
#[non_owned]
39+
#[unsafe_no_drop_flag]
3940
pub struct Rc<T> {
4041
priv ptr: *mut RcBox<T>,
4142
}
@@ -168,6 +169,7 @@ struct RcMutBox<T> {
168169
/// Mutable reference counted pointer type
169170
#[non_owned]
170171
#[mutable]
172+
#[unsafe_no_drop_flag]
171173
pub struct RcMut<T> {
172174
priv ptr: *mut RcMutBox<T>,
173175
}

0 commit comments

Comments
 (0)