Andrew Kelley b6762c2473 Sema: fix crash when ref coercion dest is var args
When analyzing the `validate_ref_ty` ZIR instruction, an assertion would
trip if the result type was a var args function argument. The fix is the
same as e6b73be870a39f4da7a08a40da23e38b5e9613da - inline the logic of
`resolveType` and handle the case of var args.

Closes #17494
2023-10-13 00:31:22 -07:00
..
2023-07-28 19:27:08 -04:00
2023-10-11 00:53:07 -07:00
2023-06-25 14:51:03 -07:00
2023-09-26 21:07:47 +02:00