Skip to content

Commit dcb24f5

Browse files
committed
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.
2 parents fe50c75 + 15adaf6 commit dcb24f5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/librustc/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ This API is completely unstable and subject to change.
2727
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2828
html_root_url = "http://static.rust-lang.org/doc/master")];
2929

30+
#[allow(deprecated)];
3031
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
3132
#[feature(quote)];
3233

src/libstd/vec_ng.rs

+1
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ impl<T> Vec<T> {
369369
}
370370

371371
#[inline]
372+
#[deprecated="Use `xs.iter().map(closure)` instead."]
372373
pub fn map<U>(&self, f: |t: &T| -> U) -> Vec<U> {
373374
self.iter().map(f).collect()
374375
}

src/libsyntax/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ This API is completely unstable and subject to change.
3030
#[allow(unknown_features)];// Note: remove it after a snapshot.
3131
#[feature(quote)];
3232

33+
#[allow(deprecated)];
3334
#[deny(non_camel_case_types)];
3435

3536
extern crate serialize;

0 commit comments

Comments
 (0)