Delegation: reject C-variadics

This commit is contained in:
Bryanskiy 2025-03-12 16:57:12 +03:00
parent 57a4736e9f
commit ccdba16f42
4 changed files with 52 additions and 11 deletions

View file

@ -409,6 +409,11 @@ fn check_constraints<'tcx>(
emit("recursive delegation is not supported yet");
}
if tcx.fn_sig(sig_id).skip_binder().skip_binder().c_variadic {
// See issue #127443 for explanation.
emit("delegation to C-variadic functions is not allowed");
}
ret
}