diff options
| author | bors <bors@rust-lang.org> | 2014-03-29 16:11:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-29 16:11:36 -0700 |
| commit | 86890b9e7c5db28ac2da5cd63d1a51d63a5e6bec (patch) | |
| tree | e21f3efe71fef724eb514ea3fd1b174855229b48 | |
| parent | a7085940499748558f4236368a145b03f521843b (diff) | |
| parent | 9ed33c00ead8ad048488476310da434c461f4a4e (diff) | |
| download | rust-86890b9e7c5db28ac2da5cd63d1a51d63a5e6bec.tar.gz rust-86890b9e7c5db28ac2da5cd63d1a51d63a5e6bec.zip | |
auto merge of #13200 : sfackler/rust/test-attr, r=cmr
| -rw-r--r-- | src/librustc/front/test.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/front/test.rs b/src/librustc/front/test.rs index 14ac2143e55..3db3dd48e0f 100644 --- a/src/librustc/front/test.rs +++ b/src/librustc/front/test.rs @@ -282,7 +282,7 @@ fn add_test_module(cx: &TestCtxt, m: &ast::Mod) -> ast::Mod { We're going to be building a module that looks more or less like: mod __test { - #[!resolve_unexported] + #![!resolve_unexported] extern crate test (name = "test", vers = "..."); fn main() { test::test_main_static(::os::args(), tests) @@ -326,8 +326,8 @@ 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]; + #![main] + #![allow(deprecated_owned_vector)] test::test_main_static(::std::os::args(), TESTS); } )).unwrap(); |
