]> git.lizzy.rs Git - rust.git/commitdiff
Fix some warnings
authorCorey Richardson <corey@octayn.net>
Sun, 5 Jan 2014 18:05:02 +0000 (13:05 -0500)
committerCorey Richardson <corey@octayn.net>
Mon, 6 Jan 2014 02:52:52 +0000 (21:52 -0500)
src/libstd/ascii.rs
src/libstd/io/net/udp.rs
src/libstd/rt/local.rs
src/test/run-pass/reflect-visit-type.rs

index 974bc454c66288adc2152a4cbbdc87d815babd42..adc10c456e35009b785ea8b8a4fcfba37f56c2cd 100644 (file)
@@ -577,6 +577,7 @@ fn test_ascii_to_bytes() {
     #[test] #[should_fail]
     fn test_ascii_fail_char_slice() { 'λ'.to_ascii(); }
 
+    #[test]
     fn test_opt() {
         assert_eq!(65u8.to_ascii_opt(), Some(Ascii { chr: 65u8 }));
         assert_eq!(255u8.to_ascii_opt(), None);
index b4f79b285b777c4211008f7d6f859c4439e6460f..8994f6b461a7d1b5e601ef697d0bdb82f10d2a69 100644 (file)
@@ -99,9 +99,8 @@ fn write(&mut self, buf: &[u8]) {
 #[cfg(test)]
 mod test {
     use super::*;
-    use io::net::ip::{Ipv4Addr, SocketAddr};
+    use io::net::ip::{SocketAddr};
     use io::*;
-    use io::test::*;
     use prelude::*;
 
     iotest!(fn bind_error() {
index b4a6f06c2a4c49568c4a203c0e1d74c9d1914b9a..37596b3501542c0deacbc2c66929d32cab0fdd3c 100644 (file)
@@ -54,7 +54,6 @@ mod test {
     use unstable::run_in_bare_thread;
     use super::*;
     use rt::task::Task;
-    use rt::local_ptr;
 
     #[test]
     fn thread_local_task_smoke_test() {
index 5acb072fd2d3723fec8586b92f3ebbb85f834737..de50bb3bfed9b1abe8bba0b117837e9e5559d686 100644 (file)
@@ -65,7 +65,7 @@ fn visit_estr_box(&mut self) -> bool { true }
     fn visit_estr_uniq(&mut self) -> bool { true }
     fn visit_estr_slice(&mut self) -> bool { true }
     fn visit_estr_fixed(&mut self,
-                        _sz: uint, _sz: uint,
+                        _sz: uint, _sz2: uint,
                         _align: uint) -> bool { true }
 
     fn visit_box(&mut self, _mtbl: uint, _inner: *TyDesc) -> bool { true }