提交 9ed33c00 编写于 作者: S Steven Fackler

Use new inner attribute syntax in test framework

上级 3eb3a02c
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册