From 3d75550343a8c1343c3230ae62c02aa3f8416661 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 13 Nov 2021 15:22:35 -0500 Subject: [PATCH] remove tests using pref_align_of --- src/test/ui/intrinsics/intrinsic-alignment.rs | 21 ++++--------------- src/test/ui/structs-enums/rec-align-u32.rs | 1 - src/test/ui/structs-enums/rec-align-u64.rs | 1 - 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/test/ui/intrinsics/intrinsic-alignment.rs b/src/test/ui/intrinsics/intrinsic-alignment.rs index 6007eba8c0906..37826e5ac16b3 100644 --- a/src/test/ui/intrinsics/intrinsic-alignment.rs +++ b/src/test/ui/intrinsics/intrinsic-alignment.rs @@ -5,7 +5,6 @@ mod rusti { extern "rust-intrinsic" { - pub fn pref_align_of() -> usize; pub fn min_align_of() -> usize; } } @@ -25,18 +24,12 @@ mod rusti { mod m { #[cfg(target_arch = "x86")] pub fn main() { - unsafe { - assert_eq!(::rusti::pref_align_of::(), 8); - assert_eq!(::rusti::min_align_of::(), 4); - } + assert_eq!(::rusti::min_align_of::(), 4); } #[cfg(not(target_arch = "x86"))] pub fn main() { - unsafe { - assert_eq!(::rusti::pref_align_of::(), 8); - assert_eq!(::rusti::min_align_of::(), 8); - } + assert_eq!(::rusti::min_align_of::(), 8); } } @@ -44,20 +37,14 @@ mod m { mod m { #[cfg(target_arch = "x86_64")] pub fn main() { - unsafe { - assert_eq!(::rusti::pref_align_of::(), 8); - assert_eq!(::rusti::min_align_of::(), 8); - } + assert_eq!(::rusti::min_align_of::(), 8); } } #[cfg(target_os = "windows")] mod m { pub fn main() { - unsafe { - assert_eq!(::rusti::pref_align_of::(), 8); - assert_eq!(::rusti::min_align_of::(), 8); - } + assert_eq!(::rusti::min_align_of::(), 8); } } diff --git a/src/test/ui/structs-enums/rec-align-u32.rs b/src/test/ui/structs-enums/rec-align-u32.rs index 889294daa340c..1f6ea542ede8d 100644 --- a/src/test/ui/structs-enums/rec-align-u32.rs +++ b/src/test/ui/structs-enums/rec-align-u32.rs @@ -9,7 +9,6 @@ use std::mem; mod rusti { extern "rust-intrinsic" { - pub fn pref_align_of() -> usize; pub fn min_align_of() -> usize; } } diff --git a/src/test/ui/structs-enums/rec-align-u64.rs b/src/test/ui/structs-enums/rec-align-u64.rs index 3bc2d16cf9df2..96c58e8b11b55 100644 --- a/src/test/ui/structs-enums/rec-align-u64.rs +++ b/src/test/ui/structs-enums/rec-align-u64.rs @@ -11,7 +11,6 @@ use std::mem; mod rusti { extern "rust-intrinsic" { - pub fn pref_align_of() -> usize; pub fn min_align_of() -> usize; } }