update "reason" for fnbox feature gate
It isn't "newly introduced" anymore.
This commit is contained in:
parent
e88defe718
commit
df4fe5fbd4
1 changed files with 4 additions and 4 deletions
|
@ -525,14 +525,14 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {}
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[rustc_paren_sugar]
|
#[rustc_paren_sugar]
|
||||||
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
|
#[unstable(feature = "fnbox", reason = "will be deprecated if and when Box<FnOnce> becomes usable", issue = "28796")]
|
||||||
pub trait FnBox<A> {
|
pub trait FnBox<A> {
|
||||||
type Output;
|
type Output;
|
||||||
|
|
||||||
fn call_box(self: Box<Self>, args: A) -> Self::Output;
|
fn call_box(self: Box<Self>, args: A) -> Self::Output;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
|
#[unstable(feature = "fnbox", reason = "will be deprecated if and when Box<FnOnce> becomes usable", issue = "28796")]
|
||||||
impl<A, F> FnBox<A> for F where F: FnOnce<A>
|
impl<A, F> FnBox<A> for F where F: FnOnce<A>
|
||||||
{
|
{
|
||||||
type Output = F::Output;
|
type Output = F::Output;
|
||||||
|
@ -542,7 +542,7 @@ impl<A, F> FnBox<A> for F where F: FnOnce<A>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
|
#[unstable(feature = "fnbox", reason = "will be deprecated if and when Box<FnOnce> becomes usable", issue = "28796")]
|
||||||
impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + 'a> {
|
impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + 'a> {
|
||||||
type Output = R;
|
type Output = R;
|
||||||
|
|
||||||
|
@ -551,7 +551,7 @@ impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + 'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
|
#[unstable(feature = "fnbox", reason = "will be deprecated if and when Box<FnOnce> becomes usable", issue = "28796")]
|
||||||
impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + Send + 'a> {
|
impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + Send + 'a> {
|
||||||
type Output = R;
|
type Output = R;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue