Skip to content

Commit 9ed33c0

Browse files
committed
Use new inner attribute syntax in test framework
1 parent 3eb3a02 commit 9ed33c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/front/test.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ fn add_test_module(cx: &TestCtxt, m: &ast::Mod) -> ast::Mod {
282282
We're going to be building a module that looks more or less like:
283283
284284
mod __test {
285-
#[!resolve_unexported]
285+
#![!resolve_unexported]
286286
extern crate test (name = "test", vers = "...");
287287
fn main() {
288288
test::test_main_static(::os::args(), tests)
@@ -326,8 +326,8 @@ fn mk_test_module(cx: &TestCtxt) -> @ast::Item {
326326
// with our list of tests
327327
let mainfn = (quote_item!(&cx.ext_cx,
328328
pub fn main() {
329-
#[allow(deprecated_owned_vector)];
330-
#[main];
329+
#![main]
330+
#![allow(deprecated_owned_vector)]
331331
test::test_main_static(::std::os::args(), TESTS);
332332
}
333333
)).unwrap();

0 commit comments

Comments
 (0)