misc: ';' to ',' in enums in cargo, compiletest, and fuzzer
This commit is contained in:
parent
5f8f641211
commit
d1fe582040
@ -25,7 +25,7 @@ import vec;
|
||||
|
||||
enum _src {
|
||||
/* Break cycles in package <-> source */
|
||||
_source(source);
|
||||
_source(source),
|
||||
}
|
||||
|
||||
type package = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
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
|
||||
|
@ -29,7 +29,7 @@ type handle =
|
||||
{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};
|
||||
|
@ -13,8 +13,8 @@ fn choice<T: copy>(r : rand::rng, v : [T]) -> T { assert vec::len(v) != 0u; v[un
|
||||
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 = {
|
||||
|
@ -6,7 +6,7 @@ import rustc::syntax::parse::parser;
|
||||
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) {
|
||||
@ -288,7 +288,7 @@ fn last_part(filename: str) -> 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user