From 2257e231a7e0c455b61c60414a65e89f01cbf509 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 24 Sep 2014 10:58:53 -0700 Subject: librustc: Eliminate the `ref` syntax for unboxed closure capture clauses in favor of `move`. This breaks code that used `move` as an identifier, because it is now a keyword. Change such identifiers to not use the keyword `move`. Additionally, this breaks code that was counting on by-value or by-reference capture semantics for unboxed closures (behind the feature gate). Change `ref |:|` to `|:|` and `|:|` to `move |:|`. Part of RFC #63; part of issue #12831. [breaking-change] --- src/liballoc/boxed.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 13d4a0a1f0a..168d0daeb38 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -96,12 +96,6 @@ pub trait BoxAny { /// `Err(Self)` if it isn't. #[unstable = "naming conventions around accessing innards may change"] fn downcast(self) -> Result, Self>; - - /// Deprecated; this method has been renamed to `downcast`. - #[deprecated = "use downcast instead"] - fn move(self) -> Result, Self> { - self.downcast::() - } } #[stable] -- cgit 1.4.1-3-g733a5