Skip to content

Commit a02e37c

Browse files
committed
Fix a warning when generating tests
1 parent ddf8247 commit a02e37c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc/front/test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fn mk_test_module(cx: &TestCtxt) -> @ast::item {
309309
let mainfn = (quote_item!(
310310
pub fn main() {
311311
#[main];
312-
extra::test::test_main_static(::std::os::args(), tests);
312+
extra::test::test_main_static(::std::os::args(), TESTS);
313313
}
314314
)).get();
315315

@@ -366,7 +366,7 @@ fn mk_tests(cx: &TestCtxt) -> @ast::item {
366366
let test_descs = mk_test_descs(cx);
367367

368368
(quote_item!(
369-
pub static tests : &'static [self::extra::test::TestDescAndFn] =
369+
pub static TESTS : &'static [self::extra::test::TestDescAndFn] =
370370
$test_descs
371371
;
372372
)).get()

src/test/run-pass/test-ignore-cfg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn shouldnotignore() {
2626
#[test]
2727
fn checktests() {
2828
// Pull the tests out of the secreturn test module
29-
let tests = __test::tests;
29+
let tests = __test::TESTS;
3030

3131
assert!(
3232
tests.iter().any_(|t| t.desc.name.to_str() == ~"shouldignore" && t.desc.ignore));

0 commit comments

Comments
 (0)