From 2a35c085017c3168626a774fda980b1253bbf9b6 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 15 Mar 2014 20:02:11 -0700 Subject: [PATCH] Squash test ~[] warning The use of `std::os::args` creates a deprecated_owned_vector warning with a bogus span. --- src/librustc/front/test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc/front/test.rs b/src/librustc/front/test.rs index d403efcf8cd26..017e00c7cac96 100644 --- a/src/librustc/front/test.rs +++ b/src/librustc/front/test.rs @@ -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); }