refactor(tvix/eval): rename UnexpectedArgument{,Formals}

There's other places where unexpected arguments can be provided, like
in builtins.

Make space for that error type.

Change-Id: Ic831497a3a1dd36a3a184bedadcf1374bf0ae6db
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11876
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2024-06-25 22:51:18 +03:00 committed by flokli
parent ea6f511241
commit 970e2a045b
2 changed files with 6 additions and 6 deletions

View file

@ -797,7 +797,7 @@ where
if !formals.contains(arg) {
return frame.error(
self,
ErrorKind::UnexpectedArgument {
ErrorKind::UnexpectedArgumentFormals {
arg: arg.clone(),
formals_span: formals.span,
},