Skip to content

Commit df4fe5f

Browse files
committed
update "reason" for fnbox feature gate
It isn't "newly introduced" anymore.
1 parent e88defe commit df4fe5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/liballoc/boxed.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -525,14 +525,14 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {}
525525
/// }
526526
/// ```
527527
#[rustc_paren_sugar]
528-
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
528+
#[unstable(feature = "fnbox", reason = "will be deprecated if and when Box<FnOnce> becomes usable", issue = "28796")]
529529
pub trait FnBox<A> {
530530
type Output;
531531

532532
fn call_box(self: Box<Self>, args: A) -> Self::Output;
533533
}
534534

535-
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
535+
#[unstable(feature = "fnbox", reason = "will be deprecated if and when Box<FnOnce> becomes usable", issue = "28796")]
536536
impl<A, F> FnBox<A> for F where F: FnOnce<A>
537537
{
538538
type Output = F::Output;
@@ -542,7 +542,7 @@ impl<A, F> FnBox<A> for F where F: FnOnce<A>
542542
}
543543
}
544544

545-
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
545+
#[unstable(feature = "fnbox", reason = "will be deprecated if and when Box<FnOnce> becomes usable", issue = "28796")]
546546
impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + 'a> {
547547
type Output = R;
548548

@@ -551,7 +551,7 @@ impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + 'a> {
551551
}
552552
}
553553

554-
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
554+
#[unstable(feature = "fnbox", reason = "will be deprecated if and when Box<FnOnce> becomes usable", issue = "28796")]
555555
impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + Send + 'a> {
556556
type Output = R;
557557

0 commit comments

Comments
 (0)