Skip to content
This repository
Browse code

test: "tag" -> "enum" in bench

  • Loading branch information...
commit 1461cfe4166b607b4059bc27a8ad96b28cc56a3b 1 parent 64a0695
Patrick Walton authored January 19, 2012
2  src/test/bench/99bob-pattern.rs
@@ -8,7 +8,7 @@ use std;
8 8
 import int;
9 9
 import str;
10 10
 
11  
-tag bottle { none; dual; single; multiple(int); }
  11
+enum bottle { none; dual; single; multiple(int); }
12 12
 
13 13
 fn show(b: bottle) {
14 14
     alt b {
2  src/test/bench/shootout-binarytrees.rs
... ...
@@ -1,7 +1,7 @@
1 1
 use std;
2 2
 import int;
3 3
 
4  
-tag tree { nil; node(~tree, ~tree, int); }
  4
+enum tree { nil; node(~tree, ~tree, int); }
5 5
 
6 6
 fn item_check(t: ~tree) -> int {
7 7
     alt *t {
2  src/test/bench/sudoku.rs
@@ -25,7 +25,7 @@ export grid_t, read_grid, solve_grid, write_grid;
25 25
 type grid = [[mutable u8]];
26 26
 
27 27
 // exported type of sudoku grids
28  
-tag grid_t { grid_ctor(grid); }
  28
+enum grid_t { grid_ctor(grid); }
29 29
 
30 30
 // read a sudoku problem from file f
31 31
 fn read_grid(f: io::reader) -> grid_t {
4  src/test/bench/task-perf-word-count-generic.rs
@@ -65,12 +65,12 @@ mod map_reduce {
65 65
 
66 66
     type reducer<K: send, V: send> = fn(K, getter<V>);
67 67
 
68  
-    tag ctrl_proto<K: send, V: send> {
  68
+    enum ctrl_proto<K: send, V: send> {
69 69
         find_reducer(K, chan<chan<reduce_proto<V>>>);
70 70
         mapper_done;
71 71
     }
72 72
 
73  
-    tag reduce_proto<V: send> { emit_val(V); done; ref; release; }
  73
+    enum reduce_proto<V: send> { emit_val(V); done; ref; release; }
74 74
 
75 75
     fn start_mappers<K1: send, K2: send,
76 76
                      V: send>(map: mapper<K1, K2, V>,
4  src/test/bench/task-perf-word-count.rs
@@ -51,12 +51,12 @@ mod map_reduce {
51 51
 
52 52
     type reducer = fn@(str, getter);
53 53
 
54  
-    tag ctrl_proto {
  54
+    enum ctrl_proto {
55 55
         find_reducer(str, chan<chan<reduce_proto>>);
56 56
         mapper_done;
57 57
     }
58 58
 
59  
-    tag reduce_proto { emit_val(int); done; ref; release; }
  59
+    enum reduce_proto { emit_val(int); done; ref; release; }
60 60
 
61 61
     fn start_mappers(ctrl: chan<ctrl_proto>, -inputs: [str]) ->
62 62
        [joinable_task] {

0 notes on commit 1461cfe

Please sign in to comment.
Something went wrong with that request. Please try again.