From feeeb11d89d4f379085d5ee1374b3660e46815e3 Mon Sep 17 00:00:00 2001 From: David Wood Date: Fri, 14 Oct 2022 11:12:13 +0100 Subject: [PATCH] macros: fully specify path to `Fn` Signed-off-by: David Wood --- compiler/rustc_macros/src/diagnostics/subdiagnostic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs index 0b82cb5097e..5a42a2cd12d 100644 --- a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs +++ b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs @@ -86,7 +86,7 @@ impl SubdiagnosticDeriveBuilder { gen impl rustc_errors::AddToDiagnostic for @Self { fn add_to_diagnostic_with<__F>(self, #diag: &mut rustc_errors::Diagnostic, #f: __F) where - __F: Fn( + __F: core::ops::Fn( &mut rustc_errors::Diagnostic, rustc_errors::SubdiagnosticMessage ) -> rustc_errors::SubdiagnosticMessage,