]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/path/mod.rs
rollup merge of #21457: alexcrichton/issue-21436
[rust.git] / src / libstd / path / mod.rs
index f4b99b4c7937aac22f24ef0a32937112cf052bfa..06d930ce50a7973fe1a76370a0be7d726868dcff 100644 (file)
@@ -823,13 +823,15 @@ pub struct Display<'a, P:'a> {
     filename: bool
 }
 
-impl<'a, P: GenericPath> fmt::Show for Display<'a, P> {
+#[stable]
+impl<'a, P: GenericPath> fmt::Debug for Display<'a, P> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        fmt::String::fmt(self, f)
+        fmt::Debug::fmt(&self.as_cow(), f)
     }
 }
 
-impl<'a, P: GenericPath> fmt::String for Display<'a, P> {
+#[stable]
+impl<'a, P: GenericPath> fmt::Display for Display<'a, P> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         self.as_cow().fmt(f)
     }