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
{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};
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) {
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
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
];
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;