]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/task/spawn.rs
Change finalize -> drop.
[rust.git] / src / libstd / task / spawn.rs
index 77053f39677936bbb1f873ecda7002418776440c..f0e3bda34ea43a076ea82d08a0f7a3e68f0902ca 100644 (file)
@@ -317,7 +317,7 @@ struct TCB {
 
 impl Drop for TCB {
     // Runs on task exit.
-    fn finalize(&self) {
+    fn drop(&self) {
         unsafe {
             // FIXME(#4330) Need self by value to get mutability.
             let this: &mut TCB = transmute(self);
@@ -372,7 +372,7 @@ struct AutoNotify {
 }
 
 impl Drop for AutoNotify {
-    fn finalize(&self) {
+    fn drop(&self) {
         let result = if self.failed { Failure } else { Success };
         self.notify_chan.send(result);
     }