about summary refs log tree commit diff
path: root/src/libcoretest/fmt
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-01-30 16:19:37 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-01-30 16:19:37 -0800
commitac83242ac9923212d093a4f38fb739eb54b1c8cd (patch)
tree7a4c91606d31d9fde1d272ee67d1a15e60fd6bfc /src/libcoretest/fmt
parent449e8bf3048d144fd5b82dd1a1a1060ff86b2877 (diff)
test: Deny warnings in {core,collections}test
Help cleans up our build a bit and stays in line with the rest of our crates
denying warnings traditionally.
Diffstat (limited to 'src/libcoretest/fmt')
-rw-r--r--src/libcoretest/fmt/num.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libcoretest/fmt/num.rs b/src/libcoretest/fmt/num.rs
index 247c3dcb9c7..2d3c05ea4ab 100644
--- a/src/libcoretest/fmt/num.rs
+++ b/src/libcoretest/fmt/num.rs
@@ -7,7 +7,6 @@
 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
-use core::fmt::radix;
 
 #[test]
 fn test_format_int() {
@@ -153,17 +152,22 @@ fn test_format_int_twos_complement() {
 }
 
 #[test]
+#[allow(deprecated)]
 fn test_format_radix() {
+    use core::fmt::radix;
     assert!(format!("{:04}", radix(3, 2)) == "0011");
     assert!(format!("{}", radix(55, 36)) == "1j");
 }
 
 #[test]
 #[should_panic]
+#[allow(deprecated)]
 fn test_radix_base_too_large() {
+    use core::fmt::radix;
     let _ = radix(55, 37);
 }
 
+#[allow(deprecated)]
 mod u32 {
     use test::Bencher;
     use core::fmt::radix;
@@ -207,6 +211,7 @@ mod u32 {
     }
 }
 
+#[allow(deprecated)]
 mod i32 {
     use test::Bencher;
     use core::fmt::radix;