From d1fe5820407fdf381a335971da1bbca123536112 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 19 Jan 2012 18:46:53 -0800 Subject: [PATCH] misc: ';' to ',' in enums in cargo, compiletest, and fuzzer --- src/cargo/cargo.rs | 2 +- src/compiletest/common.rs | 2 +- src/compiletest/procsrv.rs | 2 +- src/fuzzer/cycles.rs | 4 ++-- src/fuzzer/fuzzer.rs | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs index fc8a89d5d32..c23c9f6d9e2 100644 --- a/src/cargo/cargo.rs +++ b/src/cargo/cargo.rs @@ -25,7 +25,7 @@ import vec; enum _src { /* Break cycles in package <-> source */ - _source(source); + _source(source), } type package = { diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index 3cb9117af72..bf56dea642b 100644 --- a/src/compiletest/common.rs +++ b/src/compiletest/common.rs @@ -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 diff --git a/src/compiletest/procsrv.rs b/src/compiletest/procsrv.rs index a54dbfdefb2..a758e9a21bb 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}; -enum 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 87e162fc3c7..8e8bef79270 100644 --- a/src/fuzzer/cycles.rs +++ b/src/fuzzer/cycles.rs @@ -13,8 +13,8 @@ fn choice(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 = { diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs index 788eabbdd6c..fa6c88787d4 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; -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