diff options
| author | David Wood <david.wood@huawei.com> | 2022-10-14 11:12:13 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-10-17 09:54:24 +0100 |
| commit | feeeb11d89d4f379085d5ee1374b3660e46815e3 (patch) | |
| tree | d3128f8ef05a99d64c252a2d243d55b5ffe130ba /compiler/rustc_macros/src/diagnostics/subdiagnostic.rs | |
| parent | 1045e69e7331734d59ac85391443db9bd29fd2be (diff) | |
| download | rust-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.rs | 2 |
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, |
