enum _src {
/* Break cycles in package <-> source */
- _source(source);
+ _source(source),
}
type package = {
import option;
-enum 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};
-enum 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};
fn unlikely(r : rand::rng, n : uint) -> bool { under(r, n) == 0u }
enum maybe_pointy {
- no_pointy;
- yes_pointy(@pointy);
+ no_pointy,
+ yes_pointy(@pointy),
}
type pointy = {
import rustc::syntax::print::pprust;
import rustc::driver::diagnostic;
-enum 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)
}
-enum 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