about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCristi Cobzarenco <cristi.cobzarenco@gmail.com>2015-10-07 21:31:36 +0100
committerCristi Cobzarenco <cristi.cobzarenco@gmail.com>2015-10-07 21:31:36 +0100
commite8021808cb7c1d33551141dd867ffd9bebb65e4a (patch)
tree5023e503613f7b905209d410d329588472289f01
parent3cee9e20f24c0f001295fe8b3d962cc6b5d15e44 (diff)
downloadrust-e8021808cb7c1d33551141dd867ffd9bebb65e4a.tar.gz
rust-e8021808cb7c1d33551141dd867ffd9bebb65e4a.zip
core: Derive Default for Wrapping<T>
-rw-r--r--src/libcore/num/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 6507bb7bf8c..e942e8b6923 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -39,7 +39,7 @@ use slice::SliceExt;
 /// all standard arithmetic operations on the underlying value are
 /// intended to have wrapping semantics.
 #[stable(feature = "rust1", since = "1.0.0")]
-#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug)]
+#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug, Default)]
 pub struct Wrapping<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
 
 pub mod wrapping;