diff options
| author | Michael Benfield <mbenfield@google.com> | 2022-03-08 19:07:01 +0000 |
|---|---|---|
| committer | Michael Benfield <mbenfield@google.com> | 2022-09-07 20:12:45 +0000 |
| commit | d7a750b50436fbd228b176f6438566625e235990 (patch) | |
| tree | 4fc710101a6ad49617739201ebb72660e54b2e43 /compiler/rustc_errors/src | |
| parent | 1a08b96a0bb7c170130144214787b4a46aa5eb17 (diff) | |
| download | rust-d7a750b50436fbd228b176f6438566625e235990.tar.gz rust-d7a750b50436fbd228b176f6438566625e235990.zip | |
Use niche-filling optimization even when multiple variants have data.
Fixes #46213
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 37ff6dcff7d..513225e1606 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -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 { |
