Skip to content

Commit fbcbdb0

Browse files
committed
update comment in Abi::supports_varargs
1 parent 010c901 commit fbcbdb0

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_target/src/spec/abi

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/spec/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ impl Abi {
7070
// * C and Cdecl obviously support varargs.
7171
// * C can be based on Aapcs, SysV64 or Win64, so they must support varargs.
7272
// * EfiApi is based on Win64 or C, so it also supports it.
73+
// * System falls back to C for functions with varargs.
7374
//
7475
// * Stdcall does not, because it would be impossible for the callee to clean
7576
// up the arguments. (callee doesn't know how many arguments are there)
7677
// * Same for Fastcall, Vectorcall and Thiscall.
77-
// * System can become Stdcall, so is also a no-no.
7878
// * Other calling conventions are related to hardware or the compiler itself.
7979
match self {
8080
Self::C { .. }

0 commit comments

Comments
 (0)