diff --git a/compiler/rustc_target/src/abi/call/mod.rs b/compiler/rustc_target/src/abi/call/mod.rs index e889c3c415ca9..2cbd52bf3e9a7 100644 --- a/compiler/rustc_target/src/abi/call/mod.rs +++ b/compiler/rustc_target/src/abi/call/mod.rs @@ -27,10 +27,16 @@ mod x86_win64; #[derive(Clone, Copy, PartialEq, Eq, Debug)] pub enum PassMode { /// Ignore the argument. + /// + /// The argument is either uninhabited or a ZST. Ignore, /// Pass the argument directly. + /// + /// The argument has a layout abi of `Scalar` or `Vector`. Direct(ArgAttributes), /// Pass a pair's elements directly in two arguments. + /// + /// The argument has a layout abi of `ScalarPair`. Pair(ArgAttributes, ArgAttributes), /// Pass the argument after casting it, to either /// a single uniform or a pair of registers.