fix ICE after incorrect number of args in calls
auto merge of #5032 : lifthrasiir/rust/issue-4935, r=catamorphism

Actually a trivial fix. Fixes the issue #4935.