diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-01 17:33:01 +0100 | 
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-18 11:01:54 +0100 | 
| commit | e023590de407f417e0f3da675a372eca7acf60c6 (patch) | |
| tree | 1250b36437667439bc369777a202d9571cec2f19 /compiler/rustc_abi/src/callconv.rs | |
| parent | 21de42bf8ddd0f39c766c7705990152302ae1f3b (diff) | |
| download | rust-e023590de407f417e0f3da675a372eca7acf60c6.tar.gz rust-e023590de407f417e0f3da675a372eca7acf60c6.zip  | |
make no-variant types a dedicated Variants variant
Diffstat (limited to 'compiler/rustc_abi/src/callconv.rs')
| -rw-r--r-- | compiler/rustc_abi/src/callconv.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_abi/src/callconv.rs b/compiler/rustc_abi/src/callconv.rs index ee63e46e88c..400395f99ff 100644 --- a/compiler/rustc_abi/src/callconv.rs +++ b/compiler/rustc_abi/src/callconv.rs @@ -206,7 +206,7 @@ impl<'a, Ty> TyAndLayout<'a, Ty> { let (mut result, mut total) = from_fields_at(*self, Size::ZERO)?; match &self.variants { - abi::Variants::Single { .. } => {} + abi::Variants::Single { .. } | abi::Variants::Empty => {} abi::Variants::Multiple { variants, .. } => { // Treat enum variants like union members. // HACK(eddyb) pretend the `enum` field (discriminant)  | 
