Skip to content

Commit 5fa77ad

Browse files
committed
Fix new dead_code instances in std_detect
1 parent f4ea305 commit 5fa77ad

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

library/stdarch/crates/std_detect/src/detect/os/linux/aarch64.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ struct AtHwcap {
126126
f8fma: bool,
127127
f8dp4: bool,
128128
f8dp2: bool,
129-
f8e4m3: bool,
130-
f8e5m2: bool,
129+
// f8e4m3: bool,
130+
// f8e5m2: bool,
131131
smelutv2: bool,
132132
smef8f16: bool,
133133
smef8f32: bool,
@@ -230,8 +230,8 @@ impl From<auxvec::AuxVec> for AtHwcap {
230230
f8fma: bit::test(auxv.hwcap2, 52),
231231
f8dp4: bit::test(auxv.hwcap2, 53),
232232
f8dp2: bit::test(auxv.hwcap2, 54),
233-
f8e4m3: bit::test(auxv.hwcap2, 55),
234-
f8e5m2: bit::test(auxv.hwcap2, 56),
233+
// f8e4m3: bit::test(auxv.hwcap2, 55),
234+
// f8e5m2: bit::test(auxv.hwcap2, 56),
235235
smelutv2: bit::test(auxv.hwcap2, 57),
236236
smef8f16: bit::test(auxv.hwcap2, 58),
237237
smef8f32: bit::test(auxv.hwcap2, 59),

library/stdarch/crates/std_detect/src/detect/os/linux/s390x.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pub(crate) fn detect_features() -> cache::Initializer {
1010
cache(opt_hwcap, facilities)
1111
}
1212

13+
// FIXME(#143487): is it okay that the fields are never read?
14+
#[expect(dead_code)]
1315
#[derive(Debug, Default, PartialEq)]
1416
struct AtHwcap {
1517
esan3: bool,

0 commit comments

Comments
 (0)