about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/num/wrapping.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/wrapping.rs b/src/libcore/num/wrapping.rs
index 1636a1e2703..2e3b34af513 100644
--- a/src/libcore/num/wrapping.rs
+++ b/src/libcore/num/wrapping.rs
@@ -119,13 +119,13 @@ macro_rules! wrapping_impl {
             }
         }
 
-        #[stable(feature = "rust1", since = "1.3.0")]
+        #[stable(feature = "wrapping_div", since = "1.3.0")]
         impl Div for Wrapping<$t> {
             type Output = Wrapping<$t>;
 
             #[inline(always)]
             fn div(self, other: Wrapping<$t>) -> Wrapping<$t> {
-                Wrapping(self.0 / other.0)
+                Wrapping(self.0.wrapping_div(other.0))
             }
         }