about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Paseltiner <apaseltiner@gmail.com>2013-03-20 11:36:16 -0400
committerAndrew Paseltiner <apaseltiner@gmail.com>2013-03-22 06:24:19 -0400
commit4055fe83f671abe8b3e3fa7118d271692b13ca2b (patch)
treee8d631d719aed233d81e58e3f8b5972863fdf930
parent98e8fe12d232bd77d46c75e69236d11277732e82 (diff)
downloadrust-4055fe83f671abe8b3e3fa7118d271692b13ca2b.tar.gz
rust-4055fe83f671abe8b3e3fa7118d271692b13ca2b.zip
std: replace uses of old deriving attribute with new one
-rw-r--r--src/libstd/deque.rs6
-rw-r--r--src/libstd/getopts.rs18
-rw-r--r--src/libstd/list.rs2
-rw-r--r--src/libstd/net_url.rs6
-rw-r--r--src/libstd/semver.rs4
-rw-r--r--src/libstd/test.rs4
-rw-r--r--src/libstd/workcache.rs2
7 files changed, 21 insertions, 21 deletions
diff --git a/src/libstd/deque.rs b/src/libstd/deque.rs
index 18cf64b299f..64d28dcde83 100644
--- a/src/libstd/deque.rs
+++ b/src/libstd/deque.rs
@@ -253,15 +253,15 @@ mod tests {
         fail_unless!(*deq.get(3) == d);
     }
 
-    #[deriving_eq]
+    #[deriving(Eq)]
     enum Taggy { One(int), Two(int, int), Three(int, int, int), }
 
-    #[deriving_eq]
+    #[deriving(Eq)]
     enum Taggypar<T> {
         Onepar(int), Twopar(int, int), Threepar(int, int, int),
     }
 
-    #[deriving_eq]
+    #[deriving(Eq)]
     struct RecCy {
         x: int,
         y: int,
diff --git a/src/libstd/getopts.rs b/src/libstd/getopts.rs
index e2702b7d566..de8a8f34381 100644
--- a/src/libstd/getopts.rs
+++ b/src/libstd/getopts.rs
@@ -86,20 +86,20 @@ use core::option::{Some, None};
 use core::str;
 use core::vec;
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub enum Name {
     Long(~str),
     Short(char),
 }
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub enum HasArg { Yes, No, Maybe, }
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub enum Occur { Req, Optional, Multi, }
 
 /// A description of a possible option
-#[deriving_eq]
+#[deriving(Eq)]
 pub struct Opt {
     name: Name,
     hasarg: HasArg,
@@ -146,14 +146,14 @@ pub fn optmulti(name: &str) -> Opt {
     return Opt {name: mkname(name), hasarg: Yes, occur: Multi};
 }
 
-#[deriving_eq]
+#[deriving(Eq)]
 enum Optval { Val(~str), Given, }
 
 /**
  * The result of checking command line arguments. Contains a vector
  * of matches and a vector of free strings.
  */
-#[deriving_eq]
+#[deriving(Eq)]
 pub struct Matches {
     opts: ~[Opt],
     vals: ~[~[Optval]],
@@ -179,7 +179,7 @@ fn find_opt(opts: &[Opt], nm: Name) -> Option<uint> {
  * The type returned when the command line does not conform to the
  * expected format. Pass this value to <fail_str> to get an error message.
  */
-#[deriving_eq]
+#[deriving(Eq)]
 pub enum Fail_ {
     ArgumentMissing(~str),
     UnrecognizedOption(~str),
@@ -446,7 +446,7 @@ pub fn opt_default(mm: &Matches, nm: &str, def: &str) -> Option<~str> {
                            _      => Some::<~str>(str::from_slice(def)) }
 }
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub enum FailType {
     ArgumentMissing_,
     UnrecognizedOption_,
@@ -469,7 +469,7 @@ pub mod groups {
     /** one group of options, e.g., both -h and --help, along with
      * their shared description and properties
      */
-    #[deriving_eq]
+    #[deriving(Eq)]
     pub struct OptGroup {
         short_name: ~str,
         long_name: ~str,
diff --git a/src/libstd/list.rs b/src/libstd/list.rs
index 3a0f299257e..eb1c249be69 100644
--- a/src/libstd/list.rs
+++ b/src/libstd/list.rs
@@ -15,7 +15,7 @@ use core::option::*;
 use core::prelude::*;
 use core::vec;
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub enum List<T> {
     Cons(T, @List<T>),
     Nil,
diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs
index 4943b374980..6fb4f6747a3 100644
--- a/src/libstd/net_url.rs
+++ b/src/libstd/net_url.rs
@@ -25,7 +25,7 @@ use core::to_str::ToStr;
 use core::to_str;
 use core::uint;
 
-#[deriving_eq]
+#[deriving(Eq)]
 struct Url {
     scheme: ~str,
     user: Option<UserInfo>,
@@ -36,7 +36,7 @@ struct Url {
     fragment: Option<~str>
 }
 
-#[deriving_eq]
+#[deriving(Eq)]
 struct UserInfo {
     user: ~str,
     pass: Option<~str>
@@ -398,7 +398,7 @@ pub pure fn get_scheme(rawurl: &str) -> Result<(~str, ~str), ~str> {
     return Err(~"url: Scheme must be terminated with a colon.");
 }
 
-#[deriving_eq]
+#[deriving(Eq)]
 enum Input {
     Digit, // all digits
     Hex, // digits and letters a-f
diff --git a/src/libstd/semver.rs b/src/libstd/semver.rs
index e1e7f8ca924..3593ccc5ae8 100644
--- a/src/libstd/semver.rs
+++ b/src/libstd/semver.rs
@@ -19,7 +19,7 @@ use core::str;
 use core::to_str::ToStr;
 use core::uint;
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub enum Identifier {
     Numeric(uint),
     AlphaNumeric(~str)
@@ -60,7 +60,7 @@ impl ToStr for Identifier {
 }
 
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub struct Version {
     major: uint,
     minor: uint,
diff --git a/src/libstd/test.rs b/src/libstd/test.rs
index fcc60c8d978..1829e29826f 100644
--- a/src/libstd/test.rs
+++ b/src/libstd/test.rs
@@ -188,13 +188,13 @@ pub fn parse_opts(args: &[~str]) -> OptRes {
     either::Left(test_opts)
 }
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub struct BenchSamples {
     ns_iter_samples: ~[f64],
     mb_s: uint
 }
 
-#[deriving_eq]
+#[deriving(Eq)]
 pub enum TestResult { TrOk, TrFailed, TrIgnored, TrBench(BenchSamples) }
 
 struct ConsoleTestState {
diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs
index 68a6f8effaa..f8b4337e437 100644
--- a/src/libstd/workcache.rs
+++ b/src/libstd/workcache.rs
@@ -96,7 +96,7 @@ use core::mutable::Mut;
 *
 */
 
-#[deriving_eq]
+#[deriving(Eq)]
 #[auto_encode]
 #[auto_decode]
 struct WorkKey {