diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-15 20:13:43 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-15 20:13:43 +0530 |
| commit | 9f336f6368b2d1245431d107a6a3cfedadb526ad (patch) | |
| tree | 8e91682a43ae9baadc24b878066e2885b2e344dd /src/liballoc | |
| parent | e82596b9d8b7f5e761f4b4cf666ccf9ba209b8e8 (diff) | |
| parent | b9fce76f470ca95e6801c19a82ebac874d34e92f (diff) | |
| download | rust-9f336f6368b2d1245431d107a6a3cfedadb526ad.tar.gz rust-9f336f6368b2d1245431d107a6a3cfedadb526ad.zip | |
Rollup merge of #33590 - durka:patch-22, r=aturon
update "reason" for fnbox feature gate It isn't "newly introduced" anymore.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 7bdf9eaccc3..10e4ea1c3f0 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -525,14 +525,16 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {} /// } /// ``` #[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> { type 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> { type Output = F::Output; @@ -542,7 +544,8 @@ 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> { type Output = R; @@ -551,7 +554,8 @@ 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> { type Output = R; |
