1
- #![ feature( slice_concat_ext, const_fn ) ]
1
+ #![ feature( slice_concat_ext) ]
2
2
3
3
extern crate compiletest_rs as compiletest;
4
4
@@ -13,15 +13,13 @@ macro_rules! eprintln {
13
13
}
14
14
}
15
15
16
- const fn miri_path ( ) -> & ' static str {
17
- concat ! ( "target/" , env!( "PROFILE" ) , "/miri" )
18
- }
16
+ const MIRI_PATH : & ' static str = concat ! ( "target/" , env!( "PROFILE" ) , "/miri" ) ;
19
17
20
18
fn compile_fail ( sysroot : & Path , path : & str , target : & str , host : & str , fullmir : bool ) {
21
19
eprintln ! ( "## Running compile-fail tests in {} against miri for target {}" , path, target) ;
22
20
let mut config = compiletest:: default_config ( ) ;
23
21
config. mode = "compile-fail" . parse ( ) . expect ( "Invalid mode" ) ;
24
- config. rustc_path = miri_path ( ) . into ( ) ;
22
+ config. rustc_path = MIRI_PATH . into ( ) ;
25
23
if fullmir {
26
24
if host != target {
27
25
// skip fullmir on nonhost
@@ -60,7 +58,7 @@ fn miri_pass(path: &str, target: &str, host: &str, fullmir: bool, opt: bool) {
60
58
config. src_base = PathBuf :: from ( path) ;
61
59
config. target = target. to_owned ( ) ;
62
60
config. host = host. to_owned ( ) ;
63
- config. rustc_path = miri_path ( ) . into ( ) ;
61
+ config. rustc_path = MIRI_PATH . into ( ) ;
64
62
let mut flags = Vec :: new ( ) ;
65
63
if fullmir {
66
64
if host != target {
0 commit comments