about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-06-27 16:45:09 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-06-27 23:21:40 -0400
commit5fccce4051f452f68ad725d2e7520d3971f3178d (patch)
treebdcb25816cd033251886004efc4b8b49aeb81b50
parent6b2297d118bdbc3b1487dc48ae56f9e1755b41f5 (diff)
downloadrust-5fccce4051f452f68ad725d2e7520d3971f3178d.tar.gz
rust-5fccce4051f452f68ad725d2e7520d3971f3178d.zip
rc: add missing `#[unsafe_no_drop_flag]`
The destructors were updated in d9f6dd263c16a21108c27dbf15a3d59a43a5b490
but this was accidentally left out.
-rw-r--r--src/libextra/rc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libextra/rc.rs b/src/libextra/rc.rs
index 8ef58a188d9..5b1451387e7 100644
--- a/src/libextra/rc.rs
+++ b/src/libextra/rc.rs
@@ -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>,
 }