diff options
| author | bors <bors@rust-lang.org> | 2014-03-04 17:11:39 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-04 17:11:39 -0800 |
| commit | dcb24f5450c88ef17d47304685d2a1a0d82b2dbd (patch) | |
| tree | e0fd389670acc8375c65b472efd2ad6fcadee717 | |
| parent | fe50c75d02c9b41bcda28596077b1122a89bee5d (diff) | |
| parent | 15adaf6f3ea4b2cdab5ecf6ce319eb39d81ab64f (diff) | |
| download | rust-dcb24f5450c88ef17d47304685d2a1a0d82b2dbd.tar.gz rust-dcb24f5450c88ef17d47304685d2a1a0d82b2dbd.zip | |
auto merge of #12697 : thestinger/rust/vec, r=huonw
This exists for the sake of compatibility during the ~[T] -> Vec<T> transition. It will be removed in the future.
| -rw-r--r-- | src/librustc/lib.rs | 1 | ||||
| -rw-r--r-- | src/libstd/vec_ng.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/lib.rs | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs index 33d26c49a9a..2e68fdd1423 100644 --- a/src/librustc/lib.rs +++ b/src/librustc/lib.rs @@ -27,6 +27,7 @@ This API is completely unstable and subject to change. html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://static.rust-lang.org/doc/master")]; +#[allow(deprecated)]; #[feature(macro_rules, globs, struct_variant, managed_boxes)]; #[feature(quote)]; diff --git a/src/libstd/vec_ng.rs b/src/libstd/vec_ng.rs index 225bfc25d88..0a5a7c2da47 100644 --- a/src/libstd/vec_ng.rs +++ b/src/libstd/vec_ng.rs @@ -369,6 +369,7 @@ impl<T> Vec<T> { } #[inline] + #[deprecated="Use `xs.iter().map(closure)` instead."] pub fn map<U>(&self, f: |t: &T| -> U) -> Vec<U> { self.iter().map(f).collect() } diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index d66ace1fdfa..9d2810d8344 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -30,6 +30,7 @@ This API is completely unstable and subject to change. #[allow(unknown_features)];// Note: remove it after a snapshot. #[feature(quote)]; +#[allow(deprecated)]; #[deny(non_camel_case_types)]; extern crate serialize; |
