diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-06-10 18:04:49 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-06-17 09:07:16 -0700 |
| commit | c72e01ef7f317a0bad3c3e780cb02858f2017f43 (patch) | |
| tree | 697ad722382ff7441d36c9dcd4db0df90568c28c | |
| parent | 153de4c5d9e7846a029f9c79fb9940f72f5961f9 (diff) | |
| download | rust-c72e01ef7f317a0bad3c3e780cb02858f2017f43.tar.gz rust-c72e01ef7f317a0bad3c3e780cb02858f2017f43.zip | |
std: Deprecate result::fold
This function has seen very little use and it seems better to explore this functionality through iterator adaptors instead of specialized functions.
| -rw-r--r-- | src/libcore/result.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 7fd845edc3f..d87c1020dcc 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -968,6 +968,9 @@ impl<A, E, V: FromIterator<A>> FromIterator<Result<A, E>> for Result<V, E> { #[inline] #[unstable(feature = "result_fold", reason = "unclear if this function should exist")] +#[deprecated(since = "1.2.0", + reason = "has not seen enough usage to justify its position in \ + the standard library")] pub fn fold<T, V, E, |
