about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-03-15 21:16:29 -0700
committerbors <bors@rust-lang.org>2014-03-15 21:16:29 -0700
commitabd844e4df068196d1150ac39d596f73e210d95d (patch)
tree20822c35d369a5479fc4178203c5d5ad2d22e225
parente49c30a89a2f7fd4277bdbf5722a09b1d5700507 (diff)
parent2a35c085017c3168626a774fda980b1253bbf9b6 (diff)
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.
-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);
         }