1
Fork 0

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.
This commit is contained in:
bors 2014-03-04 17:11:39 -08:00
commit dcb24f5450
3 changed files with 3 additions and 0 deletions

View file

@ -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)];

View file

@ -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()
}

View file

@ -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;