about summary refs log tree commit diff
path: root/src/comp/syntax/print
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-01-19 14:24:03 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-01-19 14:24:03 -0800
commitbdb8f6cf52a2a4e2f78e6fa95d42140aa26ec31c (patch)
tree0d0b55cfc904eeec0d4bf99bd92744ff81324b39 /src/comp/syntax/print
parente6a7383a5f478b90b95556da25160ffee870b57d (diff)
downloadrust-bdb8f6cf52a2a4e2f78e6fa95d42140aa26ec31c.tar.gz
rust-bdb8f6cf52a2a4e2f78e6fa95d42140aa26ec31c.zip
rustc: "tag" -> "enum"
Diffstat (limited to 'src/comp/syntax/print')
-rw-r--r--src/comp/syntax/print/pp.rs6
-rw-r--r--src/comp/syntax/print/pprust.rs6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/comp/syntax/print/pp.rs b/src/comp/syntax/print/pp.rs
index 455e9d916c9..4950af7b624 100644
--- a/src/comp/syntax/print/pp.rs
+++ b/src/comp/syntax/print/pp.rs
@@ -55,13 +55,13 @@ import io::writer_util;
  * line (which it can't) and so naturally place the content on its own line to
  * avoid combining it with other lines and making matters even worse.
  */
-tag breaks { consistent; inconsistent; }
+enum breaks { consistent; inconsistent; }
 
 type break_t = {offset: int, blank_space: int};
 
 type begin_t = {offset: int, breaks: breaks};
 
-tag token { STRING(str, int); BREAK(break_t); BEGIN(begin_t); END; EOF; }
+enum token { STRING(str, int); BREAK(break_t); BEGIN(begin_t); END; EOF; }
 
 fn tok_str(t: token) -> str {
     alt t {
@@ -91,7 +91,7 @@ fn buf_str(toks: [mutable token], szs: [mutable int], left: uint, right: uint,
     ret s;
 }
 
-tag print_stack_break { fits; broken(breaks); }
+enum print_stack_break { fits; broken(breaks); }
 
 type print_stack_elt = {offset: int, pbreak: print_stack_break};
 
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs
index d666e0e3fab..3717dc83780 100644
--- a/src/comp/syntax/print/pprust.rs
+++ b/src/comp/syntax/print/pprust.rs
@@ -12,8 +12,8 @@ import pp::{break_offset, word, printer,
 import driver::diagnostic;
 
 // The ps is stored here to prevent recursive type.
-// FIXME use a nominal tag instead
-tag ann_node {
+// FIXME use a nominal enum instead
+enum ann_node {
     node_block(ps, ast::blk);
     node_item(ps, @ast::item);
     node_expr(ps, @ast::expr);
@@ -565,7 +565,7 @@ fn print_block_with_attrs(s: ps, blk: ast::blk, attrs: [ast::attribute]) {
     print_possibly_embedded_block_(s, blk, block_normal, indent_unit, attrs);
 }
 
-tag embed_type { block_macro; block_block_fn; block_normal; }
+enum embed_type { block_macro; block_block_fn; block_normal; }
 
 fn print_possibly_embedded_block(s: ps, blk: ast::blk, embedded: embed_type,
                                  indented: uint) {