1010
1111#![ crate_type = "lib" ]
1212
13- #![ cfg_attr( not( feature = "norustc" ) , feature( rustc_private) ) ]
14- #![ cfg_attr( not( feature = "stable" ) , feature( test) ) ]
13+ #![ cfg_attr( feature = "rustc" , feature( rustc_private) ) ]
1514
1615#![ deny( unused_imports) ]
1716
18- #[ cfg( not ( feature = "norustc" ) ) ]
17+ #[ cfg( feature = "rustc" ) ]
1918extern crate rustc;
2019
2120#[ cfg( unix) ]
@@ -110,8 +109,6 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
110109 test:: TestOpts {
111110 filter : config. filter . clone ( ) ,
112111 filter_exact : config. filter_exact ,
113- #[ cfg( not( feature = "stable" ) ) ]
114- exclude_should_panic : false ,
115112 run_ignored : if config. run_ignored { test:: RunIgnored :: Yes } else { test:: RunIgnored :: No } ,
116113 format : if config. quiet { test:: OutputFormat :: Terse } else { test:: OutputFormat :: Pretty } ,
117114 logfile : config. logfile . clone ( ) ,
@@ -126,8 +123,6 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
126123 skip : vec ! [ ] ,
127124 list : false ,
128125 options : test:: Options :: new ( ) ,
129- #[ cfg( not( feature = "stable" ) ) ]
130- time_options : None ,
131126 }
132127}
133128
@@ -259,8 +254,6 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
259254 ignore : early_props. ignore ,
260255 should_panic : should_panic,
261256 allow_fail : false ,
262- #[ cfg( not( feature = "stable" ) ) ]
263- test_type : test:: TestType :: IntegrationTest ,
264257 } ,
265258 testfn : make_test_closure ( config, testpaths) ,
266259 }
@@ -291,7 +284,6 @@ pub fn make_test_closure(config: &Config, testpaths: &TestPaths) -> test::TestFn
291284 let config = config. clone ( ) ;
292285 let testpaths = testpaths. clone ( ) ;
293286 test:: DynTestFn ( Box :: new ( move || {
294- #[ cfg( feature = "stable" ) ]
295287 let config = config. clone ( ) ; // FIXME: why is this needed?
296288 runtest:: run ( config, & testpaths)
297289 } ) )
0 commit comments