about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-10-14 11:12:13 +0100
committerDavid Wood <david.wood@huawei.com>2022-10-17 09:54:24 +0100
commitfeeeb11d89d4f379085d5ee1374b3660e46815e3 (patch)
treed3128f8ef05a99d64c252a2d243d55b5ffe130ba /compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
parent1045e69e7331734d59ac85391443db9bd29fd2be (diff)
downloadrust-feeeb11d89d4f379085d5ee1374b3660e46815e3.tar.gz
rust-feeeb11d89d4f379085d5ee1374b3660e46815e3.zip
macros: fully specify path to `Fn`
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_macros/src/diagnostics/subdiagnostic.rs')
-rw-r--r--compiler/rustc_macros/src/diagnostics/subdiagnostic.rs2
1 files changed, 1 insertions, 1 deletions
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,