diff options
| author | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-01-24 11:23:14 +0000 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-01-24 11:23:14 +0000 |
| commit | a8dfa3757cddd958c7dcadeeafd62721c45a487e (patch) | |
| tree | 61658a523fceb2765d48c30cfcf2019e8a5e7b9b /compiler/rustc_errors/src/lib.rs | |
| parent | 68fa81baa3acf3a93ce4b41c8366039229926fc2 (diff) | |
| download | rust-a8dfa3757cddd958c7dcadeeafd62721c45a487e.tar.gz rust-a8dfa3757cddd958c7dcadeeafd62721c45a487e.zip | |
rustc_errors: only box the `diagnostic` field in `DiagnosticBuilder`.
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -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 16e9b265d69..180e1aca693 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -54,9 +54,9 @@ pub use snippet::Style; pub type PResult<'a, T> = Result<T, DiagnosticBuilder<'a>>; // `PResult` is used a lot. Make sure it doesn't unintentionally get bigger. -// (See also the comment on `DiagnosticBuilderInner`.) +// (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<'_, bool>, 16); +rustc_data_structures::static_assert_size!(PResult<'_, bool>, 24); #[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, Encodable, Decodable)] pub enum SuggestionStyle { |
