Skip to content

Commit 3a5bfae

Browse files
committed
Silence unused variable warnings in compiletest
1 parent 152cbaa commit 3a5bfae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compiletest/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn run_pretty_test(cx: &cx, props: &test_props, testfile: &str) {
136136
cx.config.compile_lib_path, option::some(src))
137137
}
138138

139-
fn make_pp_args(config: &config, testfile: &str) -> procargs {
139+
fn make_pp_args(config: &config, _testfile: &str) -> procargs {
140140
let prog = config.rustc_path;
141141
let args = ["-", "--pretty", "normal"];
142142
ret {prog: prog, args: args};
@@ -167,7 +167,7 @@ actual:\n\
167167
cx.config.compile_lib_path, option::some(src))
168168
}
169169

170-
fn make_typecheck_args(config: &config, testfile: &str) -> procargs {
170+
fn make_typecheck_args(config: &config, _testfile: &str) -> procargs {
171171
let prog = config.rustc_path;
172172
let args = ["-", "--no-trans", "--lib"];
173173
ret {prog: prog, args: args};

0 commit comments

Comments
 (0)