about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libflate/lib.rs10
-rw-r--r--src/libfourcc/lib.rs1
-rw-r--r--src/libhexfloat/lib.rs1
-rw-r--r--src/liblog/lib.rs2
-rw-r--r--src/libnum/lib.rs2
-rw-r--r--src/libsemver/lib.rs1
-rw-r--r--src/libtime/lib.rs2
7 files changed, 13 insertions, 6 deletions
diff --git a/src/libflate/lib.rs b/src/libflate/lib.rs
index 5601bd87bb9..ca9475a0b23 100644
--- a/src/libflate/lib.rs
+++ b/src/libflate/lib.rs
@@ -22,6 +22,7 @@ Simple compression
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
       html_root_url = "http://static.rust-lang.org/doc/master")];
 #[feature(phase)];
+#[deny(deprecated_owned_vector)];
 
 #[cfg(test)] #[phase(syntax, link)] extern crate log;
 
@@ -100,9 +101,10 @@ mod tests {
     use self::rand::Rng;
 
     #[test]
+    #[allow(deprecated_owned_vector)]
     fn test_flate_round_trip() {
         let mut r = rand::task_rng();
-        let mut words = ~[];
+        let mut words = vec!();
         for _ in range(0, 20) {
             let range = r.gen_range(1u, 10);
             words.push(r.gen_vec::<u8>(range));
@@ -110,7 +112,7 @@ mod tests {
         for _ in range(0, 20) {
             let mut input = ~[];
             for _ in range(0, 2000) {
-                input.push_all(r.choose(words));
+                input.push_all(r.choose(words.as_slice()));
             }
             debug!("de/inflate of {} bytes of random word-sequences",
                    input.len());
@@ -125,8 +127,8 @@ mod tests {
 
     #[test]
     fn test_zlib_flate() {
-        let bytes = ~[1, 2, 3, 4, 5];
-        let deflated = deflate_bytes(bytes);
+        let bytes = vec!(1, 2, 3, 4, 5);
+        let deflated = deflate_bytes(bytes.as_slice());
         let inflated = inflate_bytes(deflated.as_slice());
         assert_eq!(inflated.as_slice(), bytes.as_slice());
     }
diff --git a/src/libfourcc/lib.rs b/src/libfourcc/lib.rs
index ddbd5b507ef..98ac0d83433 100644
--- a/src/libfourcc/lib.rs
+++ b/src/libfourcc/lib.rs
@@ -47,6 +47,7 @@ fn main() {
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
       html_root_url = "http://static.rust-lang.org/doc/master")];
 
+#[deny(deprecated_owned_vector)];
 #[feature(macro_registrar, managed_boxes)];
 
 extern crate syntax;
diff --git a/src/libhexfloat/lib.rs b/src/libhexfloat/lib.rs
index 16a18f459c0..1be72393372 100644
--- a/src/libhexfloat/lib.rs
+++ b/src/libhexfloat/lib.rs
@@ -44,6 +44,7 @@ fn main() {
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
       html_root_url = "http://static.rust-lang.org/doc/master")];
 
+#[deny(deprecated_owned_vector)];
 #[feature(macro_registrar, managed_boxes)];
 
 extern crate syntax;
diff --git a/src/liblog/lib.rs b/src/liblog/lib.rs
index 45ba598a795..75a8eae6c08 100644
--- a/src/liblog/lib.rs
+++ b/src/liblog/lib.rs
@@ -114,7 +114,7 @@ if logging is disabled, none of the components of the log will be executed.
       html_root_url = "http://static.rust-lang.org/doc/master")];
 
 #[feature(macro_rules)];
-#[deny(missing_doc)];
+#[deny(missing_doc, deprecated_owned_vector)];
 
 extern crate sync;
 
diff --git a/src/libnum/lib.rs b/src/libnum/lib.rs
index e2c6c37dae1..501ae23e27d 100644
--- a/src/libnum/lib.rs
+++ b/src/libnum/lib.rs
@@ -18,6 +18,8 @@
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
       html_root_url = "http://static.rust-lang.org/doc/master")];
 
+#[deny(deprecated_owned_vector)];
+
 extern crate rand;
 
 pub mod bigint;
diff --git a/src/libsemver/lib.rs b/src/libsemver/lib.rs
index 707b9c0ba74..42205207357 100644
--- a/src/libsemver/lib.rs
+++ b/src/libsemver/lib.rs
@@ -35,6 +35,7 @@
 #[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
       html_root_url = "http://static.rust-lang.org/doc/master")];
+#[deny(deprecated_owned_vector)];
 
 use std::char;
 use std::cmp;
diff --git a/src/libtime/lib.rs b/src/libtime/lib.rs
index 1cc2d4b8a71..8b496964bc0 100644
--- a/src/libtime/lib.rs
+++ b/src/libtime/lib.rs
@@ -16,7 +16,7 @@
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
       html_root_url = "http://static.rust-lang.org/doc/master")];
 #[feature(phase)];
-#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
+#[deny(deprecated_owned_vector)];
 
 #[cfg(test)] #[phase(syntax, link)] extern crate log;
 extern crate serialize;