]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/util/interner.rs
rollup merge of #21457: alexcrichton/issue-21436
[rust.git] / src / libsyntax / util / interner.rs
index 66b225f30dd8af39b374c9f1f317fb26affef038..1b35b1b04a313e872c72ecf0f868a6ea4d5f51ca 100644 (file)
@@ -114,9 +114,16 @@ fn cmp(&self, other: &RcStr) -> Ordering {
     }
 }
 
-impl fmt::Show for RcStr {
+impl fmt::Debug for RcStr {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        use std::fmt::Show;
+        use std::fmt::Debug;
+        self[].fmt(f)
+    }
+}
+
+impl fmt::Display for RcStr {
+    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+        use std::fmt::Display;
         self[].fmt(f)
     }
 }