Skip to content

Commit

Permalink
rc: add missing #[unsafe_no_drop_flag]
Browse files Browse the repository at this point in the history
The destructors were updated in d9f6dd2
but this was accidentally left out.
  • Loading branch information
thestinger committed Jun 28, 2013
1 parent 6b2297d commit 5fccce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libextra/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
}
Expand Down Expand Up @@ -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>,
}
Expand Down

0 comments on commit 5fccce4

Please sign in to comment.