Skip to content

Commit 2179fbf

Browse files
committed
Fix a comment.
There are quite a few hand-written `IntoDiagnostic` impls.
1 parent 4048abd commit 2179fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_errors/src/diagnostic_builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::ops::{Deref, DerefMut};
1515
use std::panic;
1616
use std::thread::panicking;
1717

18-
/// Trait implemented by error types. This should not be implemented manually. Instead, use
18+
/// Trait implemented by error types. This is rarely implemented manually. Instead, use
1919
/// `#[derive(Diagnostic)]` -- see [rustc_macros::Diagnostic].
2020
#[rustc_diagnostic_item = "IntoDiagnostic"]
2121
pub trait IntoDiagnostic<'a, G: EmissionGuarantee = ErrorGuaranteed> {

0 commit comments

Comments
 (0)