]> git.lizzy.rs Git - rust.git/commitdiff
Make `drop` method for `PinMut`'s `UnsafeFutureObj` impl empty
authorJosef Reinhard Brandl <mail@josefbrandl.de>
Sun, 1 Jul 2018 13:27:53 +0000 (15:27 +0200)
committerJosef Reinhard Brandl <mail@josefbrandl.de>
Mon, 2 Jul 2018 11:59:40 +0000 (13:59 +0200)
src/libcore/mem.rs

index 5bc55300a97384f313e805399ae9618f7aa66dc5..b83c2e21a1a44d2a5c8274e4f09ee914be635305 100644 (file)
@@ -1240,7 +1240,5 @@ unsafe fn poll(ptr: *mut (), cx: &mut Context) -> Poll<T> {
         PinMut::new_unchecked(&mut *(ptr as *mut F)).poll(cx)
     }
 
-    unsafe fn drop(ptr: *mut ()) {
-        drop(PinMut::new_unchecked(&mut *(ptr as *mut F)));
-    }
+    unsafe fn drop(_ptr: *mut ()) {}
 }