]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/rt/rc.rs
switch Drop to `&mut self`
[rust.git] / src / libstd / rt / rc.rs
index 18a5dd4a1145d1fc287665d8aa98380134a7097d..0a6890f627bbb127aa87b3b41d20a4b4c7790229 100644 (file)
@@ -74,7 +74,7 @@ pub fn refcount(&self) -> uint {
 
 #[unsafe_destructor]
 impl<T> Drop for RC<T> {
-    fn drop(&self) {
+    fn drop(&mut self) {
         assert!(self.refcount() > 0);
 
         unsafe {