Skip to content

Commit a7fcdd6

Browse files
committed
use rustc_deprecated
1 parent 8bbd33d commit a7fcdd6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

coresimd/x86/eflags.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#[cfg(target_arch = "x86")]
77
#[inline(always)]
88
#[stable(feature = "simd_x86", since = "1.27.0")]
9-
#[deprecated(since = "1.28.0", note = "use inline asm instead")]
9+
#[rustc_deprecated(since = "1.28.0")]
10+
#[doc(hidden)]
1011
pub unsafe fn __readeflags() -> u32 {
1112
let eflags: u32;
1213
asm!("pushfd; popl $0" : "=r"(eflags) : : : "volatile");
@@ -19,7 +20,8 @@ pub unsafe fn __readeflags() -> u32 {
1920
#[cfg(target_arch = "x86_64")]
2021
#[inline(always)]
2122
#[stable(feature = "simd_x86", since = "1.27.0")]
22-
#[deprecated(since = "1.28.0", note = "use inline asm instead")]
23+
#[rustc_deprecated(since = "1.28.0")]
24+
#[doc(hidden)]
2325
pub unsafe fn __readeflags() -> u64 {
2426
let eflags: u64;
2527
asm!("pushfq; popq $0" : "=r"(eflags) : : : "volatile");
@@ -32,7 +34,8 @@ pub unsafe fn __readeflags() -> u64 {
3234
#[cfg(target_arch = "x86")]
3335
#[inline(always)]
3436
#[stable(feature = "simd_x86", since = "1.27.0")]
35-
#[deprecated(since = "1.28.0", note = "use inline asm instead")]
37+
#[rustc_deprecated(since = "1.28.0")]
38+
#[doc(hidden)]
3639
pub unsafe fn __writeeflags(eflags: u32) {
3740
asm!("pushl $0; popfd" : : "r"(eflags) : "cc", "flags" : "volatile");
3841
}
@@ -43,7 +46,8 @@ pub unsafe fn __writeeflags(eflags: u32) {
4346
#[cfg(target_arch = "x86_64")]
4447
#[inline(always)]
4548
#[stable(feature = "simd_x86", since = "1.27.0")]
46-
#[deprecated(since = "1.28.0", note = "use inline asm instead")]
49+
#[rustc_deprecated(since = "1.28.0")]
50+
#[doc(hidden)]
4751
pub unsafe fn __writeeflags(eflags: u64) {
4852
asm!("pushq $0; popfq" : : "r"(eflags) : "cc", "flags" : "volatile");
4953
}

0 commit comments

Comments
 (0)