Delegation: reject C-variadics
This commit is contained in:
parent
57a4736e9f
commit
ccdba16f42
4 changed files with 52 additions and 11 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue