Skip to content

Commit 39e8e36

Browse files
committed
Remove Clone impl for DiagnosticBuilder.
It seems like a bad idea, asking for diagnostics to be emitted multiple times.
1 parent bfc4a1f commit 39e8e36

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_errors/src/diagnostic_builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ where
4242
/// access in the methods of `DiagnosticBuilder` here, consider
4343
/// extending `DiagCtxtFlags`.
4444
#[must_use]
45-
#[derive(Clone)]
4645
pub struct DiagnosticBuilder<'a, G: EmissionGuarantee = ErrorGuaranteed> {
4746
state: DiagnosticBuilderState<'a>,
4847

0 commit comments

Comments
 (0)