Skip to content

Commit 36527d6

Browse files
rustfmt: Remove has_cpuid from test
1 parent 2f0aaaf commit 36527d6

File tree

2 files changed

+0
-18
lines changed
  • src/tools/rustfmt/tests

2 files changed

+0
-18
lines changed

src/tools/rustfmt/tests/source/cfg_if/detect/os/x86.rs

-9
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ pub fn check_for(x: Feature) -> bool {
3434
fn detect_features() -> cache::Initializer {
3535
let mut value = cache::Initializer::default();
3636

37-
// If the x86 CPU does not support the CPUID instruction then it is too
38-
// old to support any of the currently-detectable features.
39-
if !has_cpuid() {
40-
return value;
41-
}
42-
43-
// Calling `__cpuid`/`__cpuid_count` from here on is safe because the CPU
44-
// has `cpuid` support.
45-
4637
// 0. EAX = 0: Basic Information:
4738
// - EAX returns the "Highest Function Parameter", that is, the maximum
4839
// leaf value for subsequent calls of `cpuinfo` in range [0,

src/tools/rustfmt/tests/target/cfg_if/detect/os/x86.rs

-9
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ pub fn check_for(x: Feature) -> bool {
3434
fn detect_features() -> cache::Initializer {
3535
let mut value = cache::Initializer::default();
3636

37-
// If the x86 CPU does not support the CPUID instruction then it is too
38-
// old to support any of the currently-detectable features.
39-
if !has_cpuid() {
40-
return value;
41-
}
42-
43-
// Calling `__cpuid`/`__cpuid_count` from here on is safe because the CPU
44-
// has `cpuid` support.
45-
4637
// 0. EAX = 0: Basic Information:
4738
// - EAX returns the "Highest Function Parameter", that is, the maximum
4839
// leaf value for subsequent calls of `cpuinfo` in range [0,

0 commit comments

Comments
 (0)