From b7039cdbdcf6b128ae3b56f5011487b7f17b40d0 Mon Sep 17 00:00:00 2001 From: tiif Date: Sat, 18 Jan 2025 00:19:23 +0800 Subject: [PATCH] Remove unnecessary const argument --- src/shims/unix/linux_like/syscall.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shims/unix/linux_like/syscall.rs b/src/shims/unix/linux_like/syscall.rs index 4913c1d266..3b881111ac 100644 --- a/src/shims/unix/linux_like/syscall.rs +++ b/src/shims/unix/linux_like/syscall.rs @@ -16,7 +16,7 @@ pub fn syscall<'tcx>( ) -> InterpResult<'tcx> { // We do not use `check_shim` here because `syscall` is variadic. The argument // count is checked below. - let ([op], var) = ecx.check_shim_variadic::<1>(abi, Conv::C, link_name, "syscall", args)?; + let ([op], var) = ecx.check_shim_variadic(abi, Conv::C, link_name, "syscall", args)?; // The syscall variadic function is legal to call with more arguments than needed, // extra arguments are simply ignored. The important check is that when we use an // argument, we have to also check all arguments *before* it to ensure that they