diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2025-04-13 08:40:42 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2025-04-17 08:49:52 -0400 |
| commit | 6504f4c09ce9e3c72084e647fab8e6565d79573e (patch) | |
| tree | 793c0a887c9300ad87340c127c4ea06d36ed5418 | |
| parent | bc0bc8d5e1a1a38ee5a342e614e490e490bc5604 (diff) | |
| download | rust-6504f4c09ce9e3c72084e647fab8e6565d79573e.tar.gz rust-6504f4c09ce9e3c72084e647fab8e6565d79573e.zip | |
Format
| -rw-r--r-- | src/abi.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/abi.rs b/src/abi.rs index 6fdb03fb85b..a96b18e01c0 100644 --- a/src/abi.rs +++ b/src/abi.rs @@ -9,9 +9,9 @@ use rustc_middle::ty::Ty; use rustc_middle::ty::layout::LayoutOf; #[cfg(feature = "master")] use rustc_session::config; -use rustc_target::callconv::{ArgAttributes, CastTarget, FnAbi, PassMode}; #[cfg(feature = "master")] use rustc_target::callconv::Conv; +use rustc_target::callconv::{ArgAttributes, CastTarget, FnAbi, PassMode}; use crate::builder::Builder; use crate::context::CodegenCx; @@ -254,9 +254,9 @@ pub fn conv_to_fn_attribute<'gcc>(conv: Conv, arch: &str) -> Option<FnAttribute< // TODO(antoyo): remove clippy allow attribute when this is implemented. #[allow(clippy::if_same_then_else)] if arch == "amdgpu" { - return None + return None; } else if arch == "nvptx64" { - return None + return None; } else { panic!("Architecture {} does not support GpuKernel calling convention", arch); } |
