diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-03-04 19:23:57 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-03-04 19:37:07 -0500 |
| commit | 15adaf6f3ea4b2cdab5ecf6ce319eb39d81ab64f (patch) | |
| tree | 27d7f0d01df03c54dbb6f059d49e1c041ddcd225 /src/libstd | |
| parent | 6e7f170fedd3c526a643c0b2d13863acd982be02 (diff) | |
| download | rust-15adaf6f3ea4b2cdab5ecf6ce319eb39d81ab64f.tar.gz rust-15adaf6f3ea4b2cdab5ecf6ce319eb39d81ab64f.zip | |
mark the `map` method on Vec<T> as deprecated
This exists for the sake of compatibility during the ~[T] -> Vec<T> transition. It will be removed in the future.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/vec_ng.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/vec_ng.rs b/src/libstd/vec_ng.rs index 9b6acdd9b9e..0dc17435fbe 100644 --- a/src/libstd/vec_ng.rs +++ b/src/libstd/vec_ng.rs @@ -350,6 +350,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() } |
