diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-06 10:27:49 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-11 15:02:17 -0700 |
| commit | 3316b1eb7c3eb520896af489dd45c4d17190d0a8 (patch) | |
| tree | c94cde854a882cad33d8ec7fe0067b43b5cb96d7 /src/libstd/path/mod.rs | |
| parent | f9260d41d6e37653bf71b08a041be0310098716a (diff) | |
| download | rust-3316b1eb7c3eb520896af489dd45c4d17190d0a8.tar.gz rust-3316b1eb7c3eb520896af489dd45c4d17190d0a8.zip | |
rustc: Remove ~[T] from the language
The following features have been removed * box [a, b, c] * ~[a, b, c] * box [a, ..N] * ~[a, ..N] * ~[T] (as a type) * deprecated_owned_vector lint All users of ~[T] should move to using Vec<T> instead.
Diffstat (limited to 'src/libstd/path/mod.rs')
| -rw-r--r-- | src/libstd/path/mod.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index a101f043212..7d15893af24 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -63,8 +63,6 @@ println!("path exists: {}", path.exists()); */ -#![deny(deprecated_owned_vector)] - use collections::Collection; use c_str::CString; use clone::Clone; @@ -527,13 +525,6 @@ impl<'a> BytesContainer for &'a [u8] { } } -impl BytesContainer for ~[u8] { - #[inline] - fn container_as_bytes<'a>(&'a self) -> &'a [u8] { - self.as_slice() - } -} - impl BytesContainer for Vec<u8> { #[inline] fn container_as_bytes<'a>(&'a self) -> &'a [u8] { |
