Skip to content

Commit a38f292

Browse files
qnighycrlf0710
authored andcommitted
We already have unsized_locals in stage0.
1 parent 4dcd6cc commit a38f292

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/liballoc/boxed.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {
694694
#[stable(feature = "fused", since = "1.26.0")]
695695
impl<I: FusedIterator + ?Sized> FusedIterator for Box<I> {}
696696

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

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

719-
#[cfg(not(stage0))]
720717
#[unstable(feature = "boxed_closure_impls",
721718
reason = "Box<FnOnce> relies on unsized rvalues and needs to be tested more",
722719
issue = "48055")]
@@ -783,9 +780,6 @@ impl<A, F> FnBox<A> for F
783780
#[unstable(feature = "fnbox",
784781
reason = "will be deprecated if and when `Box<FnOnce>` becomes usable", issue = "28796")]
785782
impl<A, R> FnOnce<A> for Box<dyn FnBox<A, Output = R> + '_> {
786-
#[cfg(stage0)]
787-
type Output = R;
788-
789783
extern "rust-call" fn call_once(self, args: A) -> R {
790784
self.call_box(args)
791785
}
@@ -794,9 +788,6 @@ impl<A, R> FnOnce<A> for Box<dyn FnBox<A, Output = R> + '_> {
794788
#[unstable(feature = "fnbox",
795789
reason = "will be deprecated if and when `Box<FnOnce>` becomes usable", issue = "28796")]
796790
impl<A, R> FnOnce<A> for Box<dyn FnBox<A, Output = R> + Send + '_> {
797-
#[cfg(stage0)]
798-
type Output = R;
799-
800791
extern "rust-call" fn call_once(self, args: A) -> R {
801792
self.call_box(args)
802793
}

0 commit comments

Comments
 (0)