Skip to content

Commit 0f43321

Browse files
committed
no need to do run-time formatting
1 parent de1376f commit 0f43321

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/compiletest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(slice_concat_ext)]
1+
#![feature(slice_concat_ext, const_fn)]
22

33
extern crate compiletest_rs as compiletest;
44

@@ -13,8 +13,8 @@ macro_rules! eprintln {
1313
}
1414
}
1515

16-
fn miri_path() -> String {
17-
format!("target/{}/miri", env!("PROFILE"))
16+
const fn miri_path() -> &'static str {
17+
concat!("target/", env!("PROFILE"), "/miri")
1818
}
1919

2020
fn compile_fail(sysroot: &Path, path: &str, target: &str, host: &str, fullmir: bool) {

0 commit comments

Comments
 (0)