about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/src
diff options
context:
space:
mode:
authorTsukasa OI <floss_rust@irq.a4lg.com>2025-03-21 05:32:09 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2025-03-24 23:27:31 +0000
commitbe20f62a204605d798b858ce7f9b32f52f3eab08 (patch)
tree106952056ec9a4cf1d551f73d8968d708f48ce7e /library/stdarch/crates/std_detect/src
parentebe880468089e775ea6c9c62eb5710177f173003 (diff)
downloadrust-be20f62a204605d798b858ce7f9b32f52f3eab08.tar.gz
rust-be20f62a204605d798b858ce7f9b32f52f3eab08.zip
silence `clippy::eq_op` while checking
This error occurs when the RISC-V "A" Extension is being tested.
Diffstat (limited to 'library/stdarch/crates/std_detect/src')
-rw-r--r--library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs
index d3865cb5e9e..2a9671d75dd 100644
--- a/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs
+++ b/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs
@@ -23,6 +23,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
     //
     // [hwcap]: https://github.com/torvalds/linux/blob/master/arch/riscv/include/asm/hwcap.h
     let auxv = auxvec::auxv().expect("read auxvec"); // should not fail on RISC-V platform
+    #[allow(clippy::eq_op)]
     enable_feature(
         &mut value,
         Feature::a,