about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-09-24 10:58:53 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-09-26 09:03:19 -0700
commit2257e231a7e0c455b61c60414a65e89f01cbf509 (patch)
treeee2c609c40991b420297ec902418bfca2dafb4bc /src/liballoc
parent5d653c17a656e8fe1572c7a695e33b188eda0597 (diff)
downloadrust-2257e231a7e0c455b61c60414a65e89f01cbf509.tar.gz
rust-2257e231a7e0c455b61c60414a65e89f01cbf509.zip
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]
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs6
1 files changed, 0 insertions, 6 deletions
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<T: 'static>(self) -> Result<Box<T>, Self>;
-
-    /// Deprecated; this method has been renamed to `downcast`.
-    #[deprecated = "use downcast instead"]
-    fn move<T: 'static>(self) -> Result<Box<T>, Self> {
-        self.downcast::<T>()
-    }
 }
 
 #[stable]