From 98318441089f9a9bb596fc010ed14c3b593d4bda Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 6 Feb 2024 21:05:37 -0800 Subject: [PATCH] Update signature of Emitter::emit_diagnostic in nightly-2024-02-07 --- benches/rust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/rust.rs b/benches/rust.rs index 15536db4c8..2f337089ef 100644 --- a/benches/rust.rs +++ b/benches/rust.rs @@ -63,7 +63,7 @@ mod librustc_parse { struct SilentEmitter; impl Emitter for SilentEmitter { - fn emit_diagnostic(&mut self, _diag: &Diagnostic) {} + fn emit_diagnostic(&mut self, _diag: Diagnostic) {} fn source_map(&self) -> Option<&Lrc> { None }