Skip to content

Commit f2dc127

Browse files
authored
cpufeatures: remove #[inline(never)] workaround for CPUID intrinsics (#1166)
The workaround is no longer needed since we have bumped MSRV to 1.85.
1 parent e8ffeaf commit f2dc127

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cpufeatures/src/x86.rs

-7
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,10 @@ macro_rules! __detect_target_features {
3838
#[cfg(target_arch = "x86_64")]
3939
use core::arch::x86_64::{__cpuid, __cpuid_count, CpuidResult};
4040

41-
// These wrappers are workarounds around
42-
// https://github.com/rust-lang/rust/issues/101346
43-
//
44-
// DO NOT remove it until MSRV is bumped to a version
45-
// with the issue fix (at least 1.64).
46-
#[inline(never)]
4741
unsafe fn cpuid(leaf: u32) -> CpuidResult {
4842
__cpuid(leaf)
4943
}
5044

51-
#[inline(never)]
5245
unsafe fn cpuid_count(leaf: u32, sub_leaf: u32) -> CpuidResult {
5346
__cpuid_count(leaf, sub_leaf)
5447
}

0 commit comments

Comments
 (0)