diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-30 09:23:55 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-10-01 07:30:23 +1000 |
| commit | 5ab68a82d592c43f7699d739003a4a7680f35e8f (patch) | |
| tree | aec0ac30e31e2354bfd2638a9f902875dadd8527 /compiler/rustc_errors/src | |
| parent | 307dd938d7937c93dc7a880e81a2383b82f30ad0 (diff) | |
| download | rust-5ab68a82d592c43f7699d739003a4a7680f35e8f.tar.gz rust-5ab68a82d592c43f7699d739003a4a7680f35e8f.zip | |
Group together more size assertions.
Also add a few more assertions for some relevant token-related types. And fix an erroneous comment in `rustc_errors`.
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index d3effb7c1c0..cdb2c2af7d6 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -66,7 +66,7 @@ pub type PErr<'a> = DiagnosticBuilder<'a, ErrorGuaranteed>; pub type PResult<'a, T> = Result<T, PErr<'a>>; // `PResult` is used a lot. Make sure it doesn't unintentionally get bigger. -// (See also the comment on `DiagnosticBuilder`'s `diagnostic` field.) +// (See also the comment on `DiagnosticBuilderInner`'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"))] |
