From 3db58e636f64d4f9f9ea20ffbf86055eaf28c301 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 22 Dec 2023 10:32:00 +1100 Subject: [PATCH] Fix a comment. There are quite a few hand-written `IntoDiagnostic` impls. --- compiler/rustc_errors/src/diagnostic_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> {