diff --git a/tests/compile-fail/atomic_non_integer_arithmetic.rs b/tests/compile-fail/atomic_non_integer_arithmetic.rs deleted file mode 100644 index 8c2ed98b7dfa..000000000000 --- a/tests/compile-fail/atomic_non_integer_arithmetic.rs +++ /dev/null @@ -1,9 +0,0 @@ -#![feature(core_intrinsics)] - -pub fn main() { - let mut z: f64 = 1.0; - unsafe { - ::std::intrinsics::atomic_xadd(&mut z, 2.0); - //~^ ERROR: Atomic arithmetic operations only work on integer types - } -} diff --git a/tests/compile-fail/ctlz_nonzero.rs b/tests/compile-fail/ctlz_nonzero.rs index 61f41363589c..e82ed89da18a 100644 --- a/tests/compile-fail/ctlz_nonzero.rs +++ b/tests/compile-fail/ctlz_nonzero.rs @@ -10,6 +10,6 @@ pub fn main() { unsafe { use crate::rusti::*; - ctlz_nonzero(0u8); //~ ERROR ctlz_nonzero called on 0 + ctlz_nonzero(0u8); //~ ERROR `ctlz_nonzero` called on 0 } } diff --git a/tests/compile-fail/cttz_nonzero.rs b/tests/compile-fail/cttz_nonzero.rs index 69d2874ce926..205b55208114 100644 --- a/tests/compile-fail/cttz_nonzero.rs +++ b/tests/compile-fail/cttz_nonzero.rs @@ -10,6 +10,6 @@ pub fn main() { unsafe { use crate::rusti::*; - cttz_nonzero(0u8); //~ ERROR cttz_nonzero called on 0 + cttz_nonzero(0u8); //~ ERROR `cttz_nonzero` called on 0 } } diff --git a/tests/compile-fail/overflowing-unchecked-rsh.rs b/tests/compile-fail/overflowing-unchecked-rsh.rs index 0d67aef43088..f59773f7e366 100644 --- a/tests/compile-fail/overflowing-unchecked-rsh.rs +++ b/tests/compile-fail/overflowing-unchecked-rsh.rs @@ -2,7 +2,7 @@ use std::intrinsics::*; -//error-pattern: Overflowing shift by 64 in unchecked_shr +//error-pattern: Overflowing shift by 64 in `unchecked_shr` fn main() { unsafe {