about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-27 10:20:52 -0700
committerbors <bors@rust-lang.org>2013-08-27 10:20:52 -0700
commit7841b77676662ed657da7b8911dd0989ac743ca0 (patch)
tree3ebd9a2e9b8ad7d54ce6ffae5570d33ff78cb655 /src/libstd
parent0baa92707aed3812a7464a891869a40ba4921cbb (diff)
parent9a63be1dbd41bdd6f164a70fcc49ca4e19e9ed89 (diff)
downloadrust-7841b77676662ed657da7b8911dd0989ac743ca0.tar.gz
rust-7841b77676662ed657da7b8911dd0989ac743ca0.zip
auto merge of #8772 : thestinger/rust/option, r=anasazi
Closes #6002 

There is consensus that the current implementation should be changed or
removed, so removing it seems like the right decision for now.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/option.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libstd/option.rs b/src/libstd/option.rs
index 34c47d9f61e..f99a595f2eb 100644
--- a/src/libstd/option.rs
+++ b/src/libstd/option.rs
@@ -43,7 +43,6 @@ let unwrapped_msg = match msg {
 
 use clone::Clone;
 use cmp::{Eq,Ord};
-use ops::Add;
 use util;
 use num::Zero;
 use iterator;
@@ -77,18 +76,6 @@ impl<T: Eq + Ord> Ord for Option<T> {
     }
 }
 
-impl<T: Add<T, T>> Add<Option<T>, Option<T>> for Option<T> {
-    #[inline]
-    fn add(&self, other: &Option<T>) -> Option<T> {
-        match (&*self, &*other) {
-            (&None, &None) => None,
-            (_, &None) => None,
-            (&None, _) => None,
-            (&Some(ref lhs), &Some(ref rhs)) => Some(*lhs + *rhs)
-        }
-    }
-}
-
 // FIXME: #8242 implementing manually because deriving doesn't work for some reason
 impl<T: ToStr> ToStr for Option<T> {
     fn to_str(&self) -> ~str {