]> git.lizzy.rs Git - rust.git/commitdiff
std: Deprecate result::fold
authorAlex Crichton <alex@alexcrichton.com>
Thu, 11 Jun 2015 01:04:49 +0000 (18:04 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 17 Jun 2015 16:07:16 +0000 (09:07 -0700)
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

index 7fd845edc3f84c4bc4645e850d03731fa188e3bd..d87c1020dcc2f99e58e9ec0d4de3649e2a7744bf 100644 (file)
@@ -968,6 +968,9 @@ fn next(&mut self) -> Option<T> {
 #[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,