Skip to content

Commit c72e01e

Browse files
committed
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.
1 parent 153de4c commit c72e01e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/result.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,9 @@ impl<A, E, V: FromIterator<A>> FromIterator<Result<A, E>> for Result<V, E> {
968968
#[inline]
969969
#[unstable(feature = "result_fold",
970970
reason = "unclear if this function should exist")]
971+
#[deprecated(since = "1.2.0",
972+
reason = "has not seen enough usage to justify its position in \
973+
the standard library")]
971974
pub fn fold<T,
972975
V,
973976
E,

0 commit comments

Comments
 (0)