Skip to content

Commit 0923d67

Browse files
committed
Fix comment placement in compiletest
1 parent 7647cf7 commit 0923d67

File tree

1 file changed

+29
-26
lines changed

1 file changed

+29
-26
lines changed

src/test/compiletest/compiletest.rs

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,33 @@ import std::task;
1414

1515
tag mode { mode_compile_fail; mode_run_fail; mode_run_pass; }
1616

17-
type config = // The library paths required for running the compiler
18-
// The library paths required for running compiled programs
19-
// The rustc executable
20-
// The directory containing the tests to run
21-
// The directory where programs should be built
22-
// The name of the stage being built (stage1, etc)
23-
// The test mode, compile-fail, run-fail, run-pass
24-
// Run ignored tests
25-
// Only run tests that match this filter
26-
// A command line to prefix program execution with,
27-
// for running under valgrind
28-
// Flags to pass to the compiler
29-
// Explain what's going on
30-
{compile_lib_path: str,
31-
run_lib_path: str,
32-
rustc_path: str,
33-
src_base: str,
34-
build_base: str,
35-
stage_id: str,
36-
mode: mode,
37-
run_ignored: bool,
38-
filter: option::t[str],
39-
runtool: option::t[str],
40-
rustcflags: option::t[str],
41-
verbose: bool};
17+
type config = {
18+
// The library paths required for running the compiler
19+
compile_lib_path: str,
20+
// The library paths required for running compiled programs
21+
run_lib_path: str,
22+
// The rustc executable
23+
rustc_path: str,
24+
// The directory containing the tests to run
25+
src_base: str,
26+
// The directory where programs should be built
27+
build_base: str,
28+
// The name of the stage being built (stage1, etc)
29+
stage_id: str,
30+
// The test mode, compile-fail, run-fail, run-pass
31+
mode: mode,
32+
// Run ignored tests
33+
run_ignored: bool,
34+
// Only run tests that match this filter
35+
filter: option::t[str],
36+
// A command line to prefix program execution with,
37+
// for running under valgrind
38+
runtool: option::t[str],
39+
// Flags to pass to the compiler
40+
rustcflags: option::t[str],
41+
// Explain what's going on
42+
verbose: bool
43+
};
4244

4345
fn main(args: vec[str]) {
4446

@@ -230,7 +232,8 @@ So actually shuttling structural data across tasks isn't possible at this
230232
time, but we can send strings! Sadly, I need the whole config record, in the
231233
test task so, instead of fixing the mechanism in the compiler I'm going to
232234
break up the config record and pass everything individually to the spawned
233-
function. */
235+
function.
236+
*/
234237

235238
fn closure_to_task(cx: cx, configport: port[str], testfn: &fn() ) -> task {
236239
testfn();

0 commit comments

Comments
 (0)