diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs index c66a09f1320..fc8a89d5d32 100644 --- a/src/cargo/cargo.rs +++ b/src/cargo/cargo.rs @@ -23,7 +23,7 @@ import str; import std::tempfile; import vec; -tag _src { +enum _src { /* Break cycles in package <-> source */ _source(source); } diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index 0555fabbcdc..3cb9117af72 100644 --- a/src/compiletest/common.rs +++ b/src/compiletest/common.rs @@ -1,6 +1,6 @@ import option; -tag mode { mode_compile_fail; mode_run_fail; mode_run_pass; mode_pretty; } +enum mode { mode_compile_fail; mode_run_fail; mode_run_pass; mode_pretty; } type config = // The library paths required for running the compiler diff --git a/src/compiletest/procsrv.rs b/src/compiletest/procsrv.rs index c74f264f2b0..a54dbfdefb2 100644 --- a/src/compiletest/procsrv.rs +++ b/src/compiletest/procsrv.rs @@ -29,7 +29,7 @@ type handle = {task: option::t<(task::task, port)>, chan: reqchan}; -tag request { exec([u8], [u8], [[u8]], chan); stop; } +enum request { exec([u8], [u8], [[u8]], chan); stop; } type response = {pid: pid_t, infd: fd_t, outfd: fd_t, errfd: fd_t}; diff --git a/src/fuzzer/cycles.rs b/src/fuzzer/cycles.rs index 4f2bab7f52f..87e162fc3c7 100644 --- a/src/fuzzer/cycles.rs +++ b/src/fuzzer/cycles.rs @@ -12,7 +12,7 @@ fn choice(r : rand::rng, v : [T]) -> T { assert vec::len(v) != 0u; v[un // 1 in n chance of being true fn unlikely(r : rand::rng, n : uint) -> bool { under(r, n) == 0u } -tag maybe_pointy { +enum maybe_pointy { no_pointy; yes_pointy(@pointy); } diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs index f40a1a77964..788eabbdd6c 100644 --- a/src/fuzzer/fuzzer.rs +++ b/src/fuzzer/fuzzer.rs @@ -6,7 +6,7 @@ import rustc::syntax::parse::parser; import rustc::syntax::print::pprust; import rustc::driver::diagnostic; -tag test_mode { tm_converge; tm_run; } +enum test_mode { tm_converge; tm_run; } type context = { mode: test_mode }; // + rng fn write_file(filename: str, content: str) { @@ -288,7 +288,7 @@ fn last_part(filename: str) -> str { str::slice(filename, ix as uint + 1u, str::byte_len(filename) - 3u) } -tag happiness { passed; cleanly_rejected(str); known_bug(str); failed(str); } +enum happiness { passed; cleanly_rejected(str); known_bug(str); failed(str); } // We'd find more bugs if we could take an AST here, but // - that would find many "false positives" or unimportant bugs @@ -464,7 +464,7 @@ fn content_is_dangerous_to_compile(code: str) -> bool { let dangerous_patterns = ["xfail-test", "-> !", // https://github.com/graydon/rust/issues/897 - "tag", // typeck hang with ty variants: https://github.com/graydon/rust/issues/742 (from dup #900) + "enum", // typeck hang with ty variants: https://github.com/graydon/rust/issues/742 (from dup #900) "with", // tstate hang with expr variants: https://github.com/graydon/rust/issues/948 "import comm" // mysterious hang: https://github.com/graydon/rust/issues/1464 ]; diff --git a/src/rustdoc/doc.rs b/src/rustdoc/doc.rs index 7d06da03228..7c95c893db7 100644 --- a/src/rustdoc/doc.rs +++ b/src/rustdoc/doc.rs @@ -37,5 +37,5 @@ type retdoc = { }; // Just to break the structural recursive types -tag modlist = [moddoc]; -tag fnlist = [fndoc]; +enum modlist = [moddoc]; +enum fnlist = [fndoc]; diff --git a/src/rustdoc/fold.rs b/src/rustdoc/fold.rs index 2d4c8c34731..0a778ba3d54 100644 --- a/src/rustdoc/fold.rs +++ b/src/rustdoc/fold.rs @@ -6,7 +6,7 @@ export default_seq_fold_mod; export default_seq_fold_fn; export default_seq_fold_fnlist; -tag fold = t; +enum fold = t; type fold_crate = fn~(fold: fold, doc: doc::cratedoc) -> doc::cratedoc; type fold_mod = fn~(fold: fold, doc: doc::moddoc) -> doc::moddoc; diff --git a/src/rustdoc/gen.rs b/src/rustdoc/gen.rs index 19d0dd4c8a4..6fb81cbb1aa 100644 --- a/src/rustdoc/gen.rs +++ b/src/rustdoc/gen.rs @@ -32,7 +32,7 @@ fn write_markdown( write_crate(ctxt, doc); } -tag hlvl { +enum hlvl { h1 = 1; h2 = 2; h3 = 3;