Skip to content

Commit 6e10661

Browse files
committed
Port all tests
1 parent e4f7c68 commit 6e10661

File tree

221 files changed

+269
-345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+269
-345
lines changed

tests/fail/box-cell-alias.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Zmiri-strict-provenance
1+
//@compile-flags: -Zmiri-strict-provenance
22

33
// Taken from <https://github.com/rust-lang/unsafe-code-guidelines/issues/194#issuecomment-520934222>.
44

tests/fail/concurrency/libc_pthread_join_detached.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
// Joining a detached thread is undefined behavior.
44

tests/fail/concurrency/libc_pthread_join_joined.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
// Joining an already joined thread is undefined behavior.
44

tests/fail/concurrency/libc_pthread_join_main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
// Joining the main thread is undefined behavior.
44

tests/fail/concurrency/libc_pthread_join_multiple.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
// Joining the same thread from multiple threads is undefined behavior.
44

tests/fail/concurrency/libc_pthread_join_self.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22
// We are making scheduler assumptions here.
3-
// compile-flags: -Zmiri-preemption-rate=0
3+
//@compile-flags: -Zmiri-preemption-rate=0
44

55
// Joining itself is undefined behavior.
66

tests/fail/concurrency/thread_local_static_dealloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
//! Ensure that thread-local statics get deallocated when the thread dies.
44

tests/fail/concurrency/too_few_args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
//! The thread function must have exactly one argument.
44

tests/fail/concurrency/too_many_args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
//! The thread function must have exactly one argument.
44

tests/fail/concurrency/unwind_top_of_stack.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-abi-check
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-abi-check
33

44
//! Unwinding past the top frame of a stack is Undefined Behavior.
55

tests/fail/dangling_pointers/dangling_pointer_addr_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Make sure we find these even with many checks disabled.
2-
// compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
2+
//@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
33
use std::ptr;
44

55
fn main() {

tests/fail/dangling_pointers/dangling_pointer_deref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Make sure we find these even with many checks disabled.
2-
// compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
2+
//@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
33

44
fn main() {
55
let p = {

tests/fail/dangling_pointers/dangling_zst_deref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Make sure we find these even with many checks disabled.
22
// Some optimizations remove ZST accesses, thus masking this UB.
3-
// compile-flags: -Zmir-opt-level=0 -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
3+
//@compile-flags: -Zmir-opt-level=0 -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
44

55
fn main() {
66
let p = {

tests/fail/dangling_pointers/deref-invalid-ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This should fail even without validation.
2-
// compile-flags: -Zmiri-disable-validation -Zmiri-permissive-provenance
2+
//@compile-flags: -Zmiri-disable-validation -Zmiri-permissive-provenance
33

44
fn main() {
55
let x = 16usize as *const u32;

tests/fail/dangling_pointers/dyn_size.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// should find the bug even without these, but gets masked by optimizations
2-
// compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows -Zmir-opt-level=0
2+
//@compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows -Zmir-opt-level=0
33

44
struct SliceWithHead(u8, [u8]);
55

tests/fail/dangling_pointers/maybe_null_pointer_deref_zst.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Some optimizations remove ZST accesses, thus masking this UB.
2-
// compile-flags: -Zmir-opt-level=0
2+
//@compile-flags: -Zmir-opt-level=0
33

44
fn main() {
55
// This pointer *could* be NULL so we cannot load from it, not even at ZST

tests/fail/dangling_pointers/maybe_null_pointer_write_zst.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Some optimizations remove ZST accesses, thus masking this UB.
2-
// compile-flags: -Zmir-opt-level=0
2+
//@compile-flags: -Zmir-opt-level=0
33

44
fn main() {
55
// This pointer *could* be NULL so we cannot load from it, not even at ZST.

tests/fail/dangling_pointers/null_pointer_deref_zst.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Some optimizations remove ZST accesses, thus masking this UB.
2-
// compile-flags: -Zmir-opt-level=0
2+
//@compile-flags: -Zmir-opt-level=0
33

44
#[allow(deref_nullptr)]
55
fn main() {

tests/fail/dangling_pointers/stack_temporary.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This should fail even without validation, but some MIR opts mask the error
2-
// compile-flags: -Zmiri-disable-validation -Zmir-opt-level=0
2+
//@compile-flags: -Zmiri-disable-validation -Zmir-opt-level=0
33

44
unsafe fn make_ref<'a>(x: *mut i32) -> &'a mut i32 {
55
&mut *x

tests/fail/dangling_pointers/storage_dead_dangling.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This should fail even without validation, but some MIR opts mask the error
2-
// compile-flags: -Zmiri-disable-validation -Zmir-opt-level=0 -Zmiri-permissive-provenance
2+
//@compile-flags: -Zmiri-disable-validation -Zmir-opt-level=0 -Zmiri-permissive-provenance
33

44
static mut LEAK: usize = 0;
55

tests/fail/dangling_pointers/wild_pointer_deref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Zmiri-permissive-provenance
1+
//@compile-flags: -Zmiri-permissive-provenance
22

33
fn main() {
44
let p = 44 as *const i32;

tests/fail/data_race/alloc_read_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33
#![feature(new_uninit)]
44

55
use std::mem::MaybeUninit;

tests/fail/data_race/alloc_write_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33
#![feature(new_uninit)]
44

55
use std::ptr::null_mut;

tests/fail/data_race/atomic_read_na_write_race1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22
#![feature(core_intrinsics)]
33

44
use std::intrinsics;

tests/fail/data_race/atomic_read_na_write_race2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::sync::atomic::AtomicUsize;
44
use std::sync::atomic::Ordering;

tests/fail/data_race/atomic_write_na_read_race1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::sync::atomic::AtomicUsize;
44
use std::sync::atomic::Ordering;

tests/fail/data_race/atomic_write_na_read_race2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22
#![feature(core_intrinsics)]
33

44
use std::intrinsics::atomic_store;

tests/fail/data_race/atomic_write_na_write_race1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22
#![feature(core_intrinsics)]
33

44
use std::intrinsics::atomic_store;

tests/fail/data_race/atomic_write_na_write_race2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::sync::atomic::AtomicUsize;
44
use std::sync::atomic::Ordering;

tests/fail/data_race/dangling_thread_async_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-isolation
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation
33

44
use std::mem;
55
use std::thread::{sleep, spawn};

tests/fail/data_race/dangling_thread_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-isolation
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation
33

44
use std::mem;
55
use std::thread::{sleep, spawn};

tests/fail/data_race/dealloc_read_race1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::thread::spawn;
44

tests/fail/data_race/dealloc_read_race2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::thread::spawn;
44

tests/fail/data_race/dealloc_read_race_stack.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33

44
use std::ptr::null_mut;
55
use std::sync::atomic::{AtomicPtr, Ordering};

tests/fail/data_race/dealloc_write_race1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::thread::spawn;
44

tests/fail/data_race/dealloc_write_race2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::thread::spawn;
44

tests/fail/data_race/dealloc_write_race_stack.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33

44
use std::ptr::null_mut;
55
use std::sync::atomic::{AtomicPtr, Ordering};

tests/fail/data_race/enable_after_join_to_main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::thread::spawn;
44

tests/fail/data_race/fence_after_load.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// We want to control preemption here.
2-
// compile-flags: -Zmiri-disable-isolation -Zmiri-preemption-rate=0
3-
// ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmiri-preemption-rate=0
3+
//@ignore-windows: Concurrency on Windows is not supported yet.
44
use std::sync::atomic::{fence, AtomicUsize, Ordering};
55
use std::sync::Arc;
66
use std::thread;

tests/fail/data_race/read_write_race.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::thread::spawn;
44

tests/fail/data_race/read_write_race_stack.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-isolation -Zmir-opt-level=0 -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmir-opt-level=0 -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33

44
// Note: mir-opt-level set to 0 to prevent the read of stack_var in thread 1
55
// from being optimized away and preventing the detection of the data-race.

tests/fail/data_race/relax_acquire_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33

44
use std::sync::atomic::{AtomicUsize, Ordering};
55
use std::thread::spawn;

tests/fail/data_race/release_seq_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33

44
use std::sync::atomic::{AtomicUsize, Ordering};
55
use std::thread::{sleep, spawn};

tests/fail/data_race/release_seq_race_same_thread.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33

44
use std::sync::atomic::{AtomicUsize, Ordering};
55
use std::thread::spawn;

tests/fail/data_race/rmw_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33

44
use std::sync::atomic::{AtomicUsize, Ordering};
55
use std::thread::spawn;

tests/fail/data_race/stack_pop_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-preemption-rate=0
33
use std::thread;
44

55
#[derive(Copy, Clone)]

tests/fail/data_race/write_write_race.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
use std::thread::spawn;
44

tests/fail/data_race/write_write_race_stack.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
33

44
use std::ptr::null_mut;
55
use std::sync::atomic::{AtomicPtr, Ordering};

tests/fail/environ-gets-deallocated.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Windows does not have a global environ list that the program can access directly
1+
//@ignore-windows: Windows does not have a global environ list that the program can access directly
22

33
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
44
fn get_environ() -> *const *const u8 {

tests/fail/erroneous_const.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Make sure we detect erroneous constants post-monomorphization even when they are unused.
22
//! (https://github.com/rust-lang/miri/issues/1382)
33
// Inlining changes the error location
4-
// compile-flags: -Zmir-opt-level=0
4+
//@compile-flags: -Zmir-opt-level=0
55
#![feature(never_type)]
66
#![warn(warnings, const_err)]
77

tests/fail/fs/close_stdout.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: No libc on Windows
2-
// compile-flags: -Zmiri-disable-isolation
1+
//@ignore-windows: No libc on Windows
2+
//@compile-flags: -Zmiri-disable-isolation
33

44
// FIXME: standard handles cannot be closed (https://github.com/rust-lang/rust/issues/40032)
55

tests/fail/fs/isolated_stdin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
#![feature(rustc_private)]
44

tests/fail/fs/read_from_stdout.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// compile-flags: -Zmiri-disable-isolation
2-
// ignore-windows: No libc on Windows
1+
//@compile-flags: -Zmiri-disable-isolation
2+
//@ignore-windows: No libc on Windows
33

44
#![feature(rustc_private)]
55

tests/fail/fs/unix_open_missing_required_mode.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: No libc on Windows
2-
// compile-flags: -Zmiri-disable-isolation
1+
//@ignore-windows: No libc on Windows
2+
//@compile-flags: -Zmiri-disable-isolation
33

44
#![feature(rustc_private)]
55

tests/fail/fs/write_to_stdin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
#![feature(rustc_private)]
44

tests/fail/function_calls/exported_symbol_abi_mismatch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// revisions: no_cache cache fn_ptr
1+
//@revisions: no_cache cache fn_ptr
22

33
#[no_mangle]
44
fn foo() {}

tests/fail/function_calls/exported_symbol_bad_unwind1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Zmiri-disable-abi-check
1+
//@compile-flags: -Zmiri-disable-abi-check
22
#![feature(c_unwind)]
33

44
#[no_mangle]

0 commit comments

Comments
 (0)