]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_target/abi/mod.rs
Sanity-check all constants
[rust.git] / src / librustc_target / abi / mod.rs
index df09be00c342fb0ebdc71d4f042bd1270bf220c5..dac4738e2b4bf15eef230ee33e18dda16df30481 100644 (file)
@@ -634,6 +634,8 @@ pub fn valid_range_exclusive<C: HasDataLayout>(&self, cx: C) -> Range<u128> {
 #[derive(PartialEq, Eq, Hash, Debug)]
 pub enum FieldPlacement {
     /// All fields start at no offset. The `usize` is the field count.
+    ///
+    /// In the case of primitives the number of fields is `0`.
     Union(usize),
 
     /// Array/vector-like placement, with all fields of identical types.