7
7
// option. This file may not be copied, modified, or distributed
8
8
// except according to those terms.
9
9
10
- #![ feature( start , rt , test) ]
10
+ #![ feature( test) ]
11
11
12
12
#![ cfg_attr( feature = "unstable" , feature( plugin) ) ]
13
13
#![ cfg_attr( feature = "unstable" , plugin( string_cache_plugin) ) ]
@@ -21,7 +21,7 @@ extern crate html5ever;
21
21
mod foreach_html5lib_test;
22
22
use foreach_html5lib_test:: foreach_html5lib_test;
23
23
24
- use std:: { fs, io, env, rt } ;
24
+ use std:: { fs, io, env} ;
25
25
use std:: io:: BufRead ;
26
26
use std:: ffi:: OsStr ;
27
27
use std:: iter:: repeat;
@@ -229,11 +229,8 @@ fn tests(src_dir: &Path, ignores: &HashSet<String>) -> Vec<TestDescAndFn> {
229
229
tests
230
230
}
231
231
232
- #[ start]
233
- fn start ( argc : isize , argv : * const * const u8 ) -> isize {
234
- unsafe {
235
- rt:: args:: init ( argc, argv) ;
236
- }
232
+ #[ test]
233
+ fn main ( ) {
237
234
let args: Vec < _ > = env:: args ( ) . collect ( ) ;
238
235
let src_dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
239
236
let mut ignores = HashSet :: new ( ) ;
@@ -246,5 +243,4 @@ fn start(argc: isize, argv: *const *const u8) -> isize {
246
243
}
247
244
248
245
test:: test_main ( & args, tests ( src_dir, & ignores) ) ;
249
- 0
250
246
}
0 commit comments