Skip to content

Commit abd844e

Browse files
committed
auto merge of #12927 : sfackler/rust/test-warn, r=huonw
The use of `std::os::args` creates a deprecated_owned_vector warning with a bogus span.
2 parents e49c30a + 2a35c08 commit abd844e

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)