diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-22 10:32:00 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-23 13:23:28 +1100 |
| commit | 3db58e636f64d4f9f9ea20ffbf86055eaf28c301 (patch) | |
| tree | 9bf21402cd6c24a1c1ba1d67987fb62b5a697128 /compiler/rustc_errors | |
| parent | 81f50fd7e3c6358b1039049f7145df6c84f44a27 (diff) | |
| download | rust-3db58e636f64d4f9f9ea20ffbf86055eaf28c301.tar.gz rust-3db58e636f64d4f9f9ea20ffbf86055eaf28c301.zip | |
Fix a comment.
There are quite a few hand-written `IntoDiagnostic` impls.
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs index e8cad62f393..b551382bb06 100644 --- a/compiler/rustc_errors/src/diagnostic_builder.rs +++ b/compiler/rustc_errors/src/diagnostic_builder.rs @@ -15,7 +15,7 @@ use std::ops::{Deref, DerefMut}; use std::panic; use std::thread::panicking; -/// Trait implemented by error types. This should not be implemented manually. Instead, use +/// Trait implemented by error types. This is rarely implemented manually. Instead, use /// `#[derive(Diagnostic)]` -- see [rustc_macros::Diagnostic]. #[rustc_diagnostic_item = "IntoDiagnostic"] pub trait IntoDiagnostic<'a, G: EmissionGuarantee = ErrorGuaranteed> { |
