mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
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.
This commit is contained in:
@@ -329,6 +329,7 @@ fn mk_test_module(cx: &TestCtxt) -> @ast::Item {
|
||||
// with our list of tests
|
||||
let mainfn = (quote_item!(&cx.ext_cx,
|
||||
pub fn main() {
|
||||
#[allow(deprecated_owned_vector)];
|
||||
#[main];
|
||||
test::test_main_static(::std::os::args(), TESTS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user