Skip to content

Commit

Permalink
We already have unsized_locals in stage0.
Browse files Browse the repository at this point in the history
  • Loading branch information
qnighy authored and crlf0710 committed Apr 4, 2019
1 parent 4dcd6cc commit a38f292
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/liballoc/boxed.rs
Expand Up @@ -694,7 +694,6 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {
#[stable(feature = "fused", since = "1.26.0")]
impl<I: FusedIterator + ?Sized> FusedIterator for Box<I> {}

#[cfg(not(stage0))]
#[unstable(feature = "boxed_closure_impls",
reason = "Box<FnOnce> relies on unsized rvalues and needs to be tested more",
issue = "48055")]
Expand All @@ -706,7 +705,6 @@ impl<A, F: FnOnce<A> + ?Sized> FnOnce<A> for Box<F> {
}
}

#[cfg(not(stage0))]
#[unstable(feature = "boxed_closure_impls",
reason = "Box<FnOnce> relies on unsized rvalues and needs to be tested more",
issue = "48055")]
Expand All @@ -716,7 +714,6 @@ impl<A, F: FnMut<A> + ?Sized> FnMut<A> for Box<F> {
}
}

#[cfg(not(stage0))]
#[unstable(feature = "boxed_closure_impls",
reason = "Box<FnOnce> relies on unsized rvalues and needs to be tested more",
issue = "48055")]
Expand Down Expand Up @@ -783,9 +780,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> + '_> {
#[cfg(stage0)]
type Output = R;

extern "rust-call" fn call_once(self, args: A) -> R {
self.call_box(args)
}
Expand All @@ -794,9 +788,6 @@ impl<A, R> FnOnce<A> for Box<dyn FnBox<A, Output = R> + '_> {
#[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 + '_> {
#[cfg(stage0)]
type Output = R;

extern "rust-call" fn call_once(self, args: A) -> R {
self.call_box(args)
}
Expand Down

0 comments on commit a38f292

Please sign in to comment.