]> git.lizzy.rs Git - rust.git/blobdiff - src/libtest/lib.rs
rollup merge of #21457: alexcrichton/issue-21436
[rust.git] / src / libtest / lib.rs
index 4a693ac2218bf1604ca083ae30d03952f479dc0b..d1b106c5ce5b78aa51a56f9ee9a4597ef8dd44a9 100644 (file)
@@ -63,7 +63,6 @@
 use std::cmp;
 use std::collections::BTreeMap;
 use std::f64;
-use std::fmt::Show;
 use std::fmt;
 use std::io::fs::PathExtensions;
 use std::io::stdio::StdWriter;
@@ -109,9 +108,9 @@ fn as_slice<'a>(&'a self) -> &'a str {
         }
     }
 }
-impl fmt::String for TestName {
+impl fmt::Display for TestName {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        fmt::String::fmt(self.as_slice(), f)
+        fmt::Display::fmt(self.as_slice(), f)
     }
 }
 
@@ -172,7 +171,7 @@ fn padding(&self) -> NamePadding {
     }
 }
 
-impl fmt::Show for TestFn {
+impl fmt::Debug for TestFn {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         f.write_str(match *self {
             StaticTestFn(..) => "StaticTestFn(..)",