Skip to content

Commit

Permalink
Remove unnecessary const argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tiif committed Jan 17, 2025
1 parent 9aa7f98 commit b7039cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shims/unix/linux_like/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7039cd

Please sign in to comment.