]> git.lizzy.rs Git - rust.git/commitdiff
rc: add missing `#[unsafe_no_drop_flag]`
authorDaniel Micay <danielmicay@gmail.com>
Thu, 27 Jun 2013 20:45:09 +0000 (16:45 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Fri, 28 Jun 2013 03:21:40 +0000 (23:21 -0400)
The destructors were updated in d9f6dd263c16a21108c27dbf15a3d59a43a5b490
but this was accidentally left out.

src/libextra/rc.rs

index 8ef58a188d930b0dba727883a98362edc44722dc..5b1451387e7adfdcdf09d548cec27a7250adfe69 100644 (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>,
 }