We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb3a02 commit 9ed33c0Copy full SHA for 9ed33c0
src/librustc/front/test.rs
@@ -282,7 +282,7 @@ fn add_test_module(cx: &TestCtxt, m: &ast::Mod) -> ast::Mod {
282
We're going to be building a module that looks more or less like:
283
284
mod __test {
285
- #[!resolve_unexported]
+ #![!resolve_unexported]
286
extern crate test (name = "test", vers = "...");
287
fn main() {
288
test::test_main_static(::os::args(), tests)
@@ -326,8 +326,8 @@ fn mk_test_module(cx: &TestCtxt) -> @ast::Item {
326
// with our list of tests
327
let mainfn = (quote_item!(&cx.ext_cx,
328
pub fn main() {
329
- #[allow(deprecated_owned_vector)];
330
- #[main];
+ #![main]
+ #![allow(deprecated_owned_vector)]
331
test::test_main_static(::std::os::args(), TESTS);
332
}
333
)).unwrap();
0 commit comments