1
Fork 0

add crate-local -Z reference_niches unstable flag (does nothing for now)

This commit is contained in:
Moulins 2023-06-23 21:05:24 +02:00
parent 30ae640a3c
commit 8b847ef734
10 changed files with 61 additions and 3 deletions

View file

@ -49,6 +49,14 @@ bitflags! {
}
}
/// Which niches (beyond the `null` niche) are available on references.
#[derive(Default, Copy, Clone, Hash, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "nightly", derive(Encodable, Decodable, HashStable_Generic))]
pub struct ReferenceNichePolicy {
pub size: bool,
pub align: bool,
}
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "nightly", derive(Encodable, Decodable, HashStable_Generic))]
pub enum IntegerType {