Use niche-filling optimization even when multiple variants have data.
Fixes #46213
This commit is contained in:
parent
1a08b96a0b
commit
d7a750b504
13 changed files with 338 additions and 158 deletions
|
@ -69,8 +69,8 @@ pub type PResult<'a, T> = Result<T, DiagnosticBuilder<'a, ErrorGuaranteed>>;
|
|||
// (See also the comment on `DiagnosticBuilder`'s `diagnostic` field.)
|
||||
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
|
||||
rustc_data_structures::static_assert_size!(PResult<'_, ()>, 16);
|
||||
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
|
||||
rustc_data_structures::static_assert_size!(PResult<'_, bool>, 24);
|
||||
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64", not(bootstrap)))]
|
||||
rustc_data_structures::static_assert_size!(PResult<'_, bool>, 16);
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, Encodable, Decodable)]
|
||||
pub enum SuggestionStyle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue