From 9089cf2ec9297a3b558d24352cde6a5206a08444 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 18 Jul 2013 17:12:46 -0700 Subject: librustc: Forbid `&` pointers (other than `&'static`) inside `@` boxes. This makes custom borrowing implementations for custom smart pointers sound. --- src/libstd/num/num.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/num') diff --git a/src/libstd/num/num.rs b/src/libstd/num/num.rs index fc199876902..f35f495def3 100644 --- a/src/libstd/num/num.rs +++ b/src/libstd/num/num.rs @@ -446,12 +446,12 @@ pub fn pow_with_uint+Mul>(radix: uint, pow: uin total } -impl Zero for @mut T { +impl Zero for @mut T { fn zero() -> @mut T { @mut Zero::zero() } fn is_zero(&self) -> bool { (**self).is_zero() } } -impl Zero for @T { +impl Zero for @T { fn zero() -> @T { @Zero::zero() } fn is_zero(&self) -> bool { (**self).is_zero() } } -- cgit 1.4.1-3-g733a5