about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMasaki Hara <ackie.h.gmai@gmail.com>2019-02-11 10:34:24 +0900
committerCrLF0710 <crlf0710@gmail.com>2019-04-05 02:27:05 +0800
commit45c0b28bcb6e383cd9d24d3845ee8accda31c889 (patch)
tree4bd485ac20f3d0bbc2921abe2492245324c315d7 /src/liballoc
parenta38f29272ef4d04f0cc77e4f8d4fa5fac7ed746d (diff)
downloadrust-45c0b28bcb6e383cd9d24d3845ee8accda31c889.tar.gz
rust-45c0b28bcb6e383cd9d24d3845ee8accda31c889.zip
Remove FnBox specialization of impl FnOnce for Box<impl FnOnce>.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index 864add1ecfe..d4fe8be36d6 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -700,7 +700,7 @@ impl<I: FusedIterator + ?Sized> FusedIterator for Box<I> {}
 impl<A, F: FnOnce<A> + ?Sized> FnOnce<A> for Box<F> {
     type Output = <F as FnOnce<A>>::Output;
 
-    default extern "rust-call" fn call_once(self, args: A) -> Self::Output {
+    extern "rust-call" fn call_once(self, args: A) -> Self::Output {
         <F as FnOnce<A>>::call_once(*self, args)
     }
 }
@@ -777,22 +777,6 @@ impl<A, F> FnBox<A> for F
     }
 }
 
-#[unstable(feature = "fnbox",
-           reason = "will be deprecated if and when `Box<FnOnce>` becomes usable", issue = "28796")]
-impl<A, R> FnOnce<A> for Box<dyn FnBox<A, Output = R> + '_> {
-    extern "rust-call" fn call_once(self, args: A) -> R {
-        self.call_box(args)
-    }
-}
-
-#[unstable(feature = "fnbox",
-           reason = "will be deprecated if and when `Box<FnOnce>` becomes usable", issue = "28796")]
-impl<A, R> FnOnce<A> for Box<dyn FnBox<A, Output = R> + Send + '_> {
-    extern "rust-call" fn call_once(self, args: A) -> R {
-        self.call_box(args)
-    }
-}
-
 #[unstable(feature = "coerce_unsized", issue = "27732")]
 impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}