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:
commit
dcb24f5450
3 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,7 @@ This API is completely unstable and subject to change.
|
||||||
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
html_root_url = "http://static.rust-lang.org/doc/master")];
|
||||||
|
|
||||||
|
#[allow(deprecated)];
|
||||||
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
|
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
|
||||||
#[feature(quote)];
|
#[feature(quote)];
|
||||||
|
|
||||||
|
|
|
@ -369,6 +369,7 @@ impl<T> Vec<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
#[deprecated="Use `xs.iter().map(closure)` instead."]
|
||||||
pub fn map<U>(&self, f: |t: &T| -> U) -> Vec<U> {
|
pub fn map<U>(&self, f: |t: &T| -> U) -> Vec<U> {
|
||||||
self.iter().map(f).collect()
|
self.iter().map(f).collect()
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@ This API is completely unstable and subject to change.
|
||||||
#[allow(unknown_features)];// Note: remove it after a snapshot.
|
#[allow(unknown_features)];// Note: remove it after a snapshot.
|
||||||
#[feature(quote)];
|
#[feature(quote)];
|
||||||
|
|
||||||
|
#[allow(deprecated)];
|
||||||
#[deny(non_camel_case_types)];
|
#[deny(non_camel_case_types)];
|
||||||
|
|
||||||
extern crate serialize;
|
extern crate serialize;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue