From 9eb723d00081938ebc6306a7cb73209e45140c95 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Mon, 12 May 2014 02:04:07 -0700 Subject: define Eq,TotalEq,Ord,TotalOrd for &mut T Also Show, which is useful in assertions. Fixes #14074 --- src/libstd/fmt/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libstd') diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs index b4bb6236f08..3ba013df278 100644 --- a/src/libstd/fmt/mod.rs +++ b/src/libstd/fmt/mod.rs @@ -1124,6 +1124,9 @@ impl Show for Box { impl<'a, T: Show> Show for &'a T { fn fmt(&self, f: &mut Formatter) -> Result { secret_show(*self, f) } } +impl<'a, T: Show> Show for &'a mut T { + fn fmt(&self, f: &mut Formatter) -> Result { secret_show(*self, f) } +} impl Bool for bool { fn fmt(&self, f: &mut Formatter) -> Result { -- cgit 1.4.1-3-g733a5