Skip to content

Commit 26f9d61

Browse files
committed
do not validate start-fn code
1 parent 1846f11 commit 26f9d61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/compiletest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ fn miri_pass(sysroot: &Path, path: &str, target: &str, host: &str, need_fullmir:
103103
flags.push("-Dwarnings -Dunused".to_owned()); // overwrite the -Aunused in compiletest-rs
104104
if have_fullmir() {
105105
flags.push("-Zmiri-start-fn".to_owned());
106+
// start-fn uses ptr::read, and so fails validation
107+
flags.push("-Zmiri-disable-validation".to_owned());
106108
}
107109
if opt {
108110
flags.push("-Zmir-opt-level=3".to_owned());

0 commit comments

Comments
 (0)