mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
We already have unsized_locals in stage0.
This commit is contained in:
@@ -694,7 +694,6 @@ fn is_empty(&self) -> bool {
|
||||
#[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")]
|
||||
@@ -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")]
|
||||
@@ -716,7 +714,6 @@ extern "rust-call" fn call_mut(&mut self, args: A) -> Self::Output {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
#[unstable(feature = "boxed_closure_impls",
|
||||
reason = "Box<FnOnce> relies on unsized rvalues and needs to be tested more",
|
||||
issue = "48055")]
|
||||
@@ -783,9 +780,6 @@ fn call_box(self: Box<F>, args: A) -> F::Output {
|
||||
#[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)
|
||||
}
|
||||
@@ -794,9 +788,6 @@ extern "rust-call" fn call_once(self, args: A) -> 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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user