about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2025-03-27 14:34:44 -0400
committerAntoni Boucher <bouanto@zoho.com>2025-04-17 08:49:37 -0400
commit5cf2bbc4e2c82961f2e82fbacc39fcf5f332e371 (patch)
treef933814a18d4580599cfa6c739fd1e93a6ebc9fe
parentf9822772e8781ed30a89aa4494e47c42b4397133 (diff)
downloadrust-5cf2bbc4e2c82961f2e82fbacc39fcf5f332e371.tar.gz
rust-5cf2bbc4e2c82961f2e82fbacc39fcf5f332e371.zip
Fix clippy warnings
-rw-r--r--src/abi.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/abi.rs b/src/abi.rs
index 3b0ab9f0042..6fdb03fb85b 100644
--- a/src/abi.rs
+++ b/src/abi.rs
@@ -251,6 +251,8 @@ pub fn conv_to_fn_attribute<'gcc>(conv: Conv, arch: &str) -> Option<FnAttribute<
         Conv::PreserveMost => return None,
         Conv::PreserveAll => return None,
         Conv::GpuKernel => {
+            // TODO(antoyo): remove clippy allow attribute when this is implemented.
+            #[allow(clippy::if_same_then_else)]
             if arch == "amdgpu" {
                 return None
             } else if arch == "nvptx64" {