From c72e01ef7f317a0bad3c3e780cb02858f2017f43 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 10 Jun 2015 18:04:49 -0700 Subject: [PATCH] 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. --- src/libcore/result.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 7fd845edc3f8..d87c1020dcc2 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -968,6 +968,9 @@ impl> FromIterator> for Result { #[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