diff options
| author | Xiretza <xiretza@xiretza.xyz> | 2024-04-18 19:18:35 +0000 |
|---|---|---|
| committer | Xiretza <xiretza@xiretza.xyz> | 2024-04-21 07:45:03 +0000 |
| commit | 5646b65cf58123679fdf4ef489f690d1b21e1436 (patch) | |
| tree | e28ccda3f8d6b4c16e17650251afecc98c292d7e /compiler/rustc_macros/src | |
| parent | 13eb8c736ce58a794434ee316cb86f1091f66c7e (diff) | |
| download | rust-5646b65cf58123679fdf4ef489f690d1b21e1436.tar.gz rust-5646b65cf58123679fdf4ef489f690d1b21e1436.zip | |
Pass translation closure to add_to_diag_with() as reference
Diffstat (limited to 'compiler/rustc_macros/src')
| -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 ced782cdbc0..94914266884 100644 --- a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs +++ b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs @@ -90,7 +90,7 @@ impl SubdiagnosticDerive { fn add_to_diag_with<__G, __F>( self, #diag: &mut rustc_errors::Diag<'_, __G>, - #f: __F + #f: &__F ) where __G: rustc_errors::EmissionGuarantee, __F: rustc_errors::SubdiagMessageOp<__G>, |
