about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2014-03-15 20:02:11 -0700
committerSteven Fackler <sfackler@gmail.com>2014-03-15 20:03:29 -0700
commit2a35c085017c3168626a774fda980b1253bbf9b6 (patch)
treea16b2d61a8701b8e35001583180a4f96e3560f1f
parent352c5e7eb767401e426e526acf5c8fe0311d8c30 (diff)
downloadrust-2a35c085017c3168626a774fda980b1253bbf9b6.tar.gz
rust-2a35c085017c3168626a774fda980b1253bbf9b6.zip
Squash test ~[] warning
The use of `std::os::args` creates a deprecated_owned_vector warning
with a bogus span.
-rw-r--r--src/librustc/front/test.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc/front/test.rs b/src/librustc/front/test.rs
index d403efcf8cd..017e00c7cac 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);
         }