about summary refs log tree commit diff
path: root/src/libregex/compile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libregex/compile.rs')
-rw-r--r--src/libregex/compile.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libregex/compile.rs b/src/libregex/compile.rs
index 1476e6ab8a7..d29a7a425c1 100644
--- a/src/libregex/compile.rs
+++ b/src/libregex/compile.rs
@@ -25,7 +25,7 @@ use parse::{
 
 type InstIdx = uint;
 
-#[deriving(Show, Clone)]
+#[derive(Show, Clone)]
 pub enum Inst {
     // When a Match instruction is executed, the current thread is successful.
     Match,
@@ -78,7 +78,7 @@ pub enum Inst {
 /// All of the data in a compiled expression is wrapped in "MaybeStatic" or
 /// "MaybeOwned" types so that a `Program` can be represented as static data.
 /// (This makes it convenient and efficient for use with the `regex!` macro.)
-#[deriving(Clone)]
+#[derive(Clone)]
 pub struct Program {
     /// A sequence of instructions.
     pub insts: Vec<Inst>,