Skip to content

Commit 2a35c08

Browse files
committed
Squash test ~[] warning
The use of `std::os::args` creates a deprecated_owned_vector warning with a bogus span.
1 parent 352c5e7 commit 2a35c08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/front/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ fn mk_test_module(cx: &TestCtxt) -> @ast::Item {
329329
// with our list of tests
330330
let mainfn = (quote_item!(&cx.ext_cx,
331331
pub fn main() {
332+
#[allow(deprecated_owned_vector)];
332333
#[main];
333334
test::test_main_static(::std::os::args(), TESTS);
334335
}

0 commit comments

Comments
 (0)