]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/rt/task.rs
Change finalize -> drop.
[rust.git] / src / libstd / rt / task.rs
index 41390aec80c5614be8068a6f714e0602c061ae0a..f5f5aca71f55c6865cfa7c2d512fcd550822061d 100644 (file)
@@ -103,7 +103,7 @@ fn destroy(&mut self) {
 }
 
 impl Drop for Task {
-    fn finalize(&self) { assert!(self.destroyed) }
+    fn drop(&self) { assert!(self.destroyed) }
 }
 
 // Just a sanity check to make sure we are catching a Rust-thrown exception