about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/liballoc/rc.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 436b134ad25..bd250938836 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -722,11 +722,7 @@ impl<T> Clone for Weak<T> {
 #[experimental = "Show is experimental."]
 impl<T: fmt::Show> fmt::Show for Weak<T> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        if self.strong() == 0 {
-            write!(f, "NULL")
-        } else {
-            (*self._ptr).fmt(f)
-        }
+        write!(f, "(Weak)")
     }
 }