]> git.lizzy.rs Git - rust.git/commitdiff
misc: "tag" -> "enum" for cargo, compiletest, fuzzer, rustdoc
authorPatrick Walton <pcwalton@mimiga.net>
Fri, 20 Jan 2012 00:21:33 +0000 (16:21 -0800)
committerPatrick Walton <pcwalton@mimiga.net>
Fri, 20 Jan 2012 00:21:33 +0000 (16:21 -0800)
src/cargo/cargo.rs
src/compiletest/common.rs
src/compiletest/procsrv.rs
src/fuzzer/cycles.rs
src/fuzzer/fuzzer.rs
src/rustdoc/doc.rs
src/rustdoc/fold.rs
src/rustdoc/gen.rs

index c66a09f1320e304fb26f85f097728faefa27a6c0..fc8a89d5d32bb10eda6940aa2bf2e3f3fec3cc06 100644 (file)
@@ -23,7 +23,7 @@
 import std::tempfile;
 import vec;
 
-tag _src {
+enum _src {
     /* Break cycles in package <-> source */
     _source(source);
 }
index 0555fabbcdcd93b796c1f614a24dbd220d628774..3cb9117af72b3b40d507659ee89ebf1c85614059 100644 (file)
@@ -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
index c74f264f2b01ca734545b2fa81af4a34ee6d0074..a54dbfdefb29ea4aee9d66a28b0704d70e392145 100644 (file)
@@ -29,7 +29,7 @@
     {task: option::t<(task::task, port<task::task_notification>)>,
      chan: reqchan};
 
-tag request { exec([u8], [u8], [[u8]], chan<response>); stop; }
+enum request { exec([u8], [u8], [[u8]], chan<response>); stop; }
 
 type response = {pid: pid_t, infd: fd_t,
                  outfd: fd_t, errfd: fd_t};
index 4f2bab7f52ff33e328c3eb519ae06bab8ec5a55d..87e162fc3c717dbf8aeba3149bac9ad54759d806 100644 (file)
@@ -12,7 +12,7 @@
 // 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);
 }
index f40a1a77964a9954c2866104ef2003e843ad599d..788eabbdd6cfc695f22682ddbdbed06190914634 100644 (file)
@@ -6,7 +6,7 @@
 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
          ];
index 7d06da0322860c239ad60b8039f62f16c7d9ab8f..7c95c893db7772f63a43b31546e70cc43caa4335 100644 (file)
@@ -37,5 +37,5 @@
 };
 
 // Just to break the structural recursive types
-tag modlist = [moddoc];
-tag fnlist = [fndoc];
+enum modlist = [moddoc];
+enum fnlist = [fndoc];
index 2d4c8c347315cb9317729758507f55c53c559b7d..0a778ba3d542be5d2a175b546b3981c5f1f35008 100644 (file)
@@ -6,7 +6,7 @@
 export default_seq_fold_fn;
 export default_seq_fold_fnlist;
 
-tag fold<T> = t<T>;
+enum fold<T> = t<T>;
 
 type fold_crate<T> = fn~(fold: fold<T>, doc: doc::cratedoc) -> doc::cratedoc;
 type fold_mod<T> = fn~(fold: fold<T>, doc: doc::moddoc) -> doc::moddoc;
index 19d0dd4c8a488255a1e3f9ff0669c45214ebcae3..6fb81cbb1aaa8f85bb389640d3fa3cadf51d0f24 100644 (file)
@@ -32,7 +32,7 @@ fn write_markdown(
     write_crate(ctxt, doc);
 }
 
-tag hlvl {
+enum hlvl {
     h1 = 1;
     h2 = 2;
     h3 = 3;