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_ast_lowering/src/errors.rs | |
| 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_ast_lowering/src/errors.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/errors.rs b/compiler/rustc_ast_lowering/src/errors.rs index ca0821e2c9e..6799513a323 100644 --- a/compiler/rustc_ast_lowering/src/errors.rs +++ b/compiler/rustc_ast_lowering/src/errors.rs @@ -44,7 +44,7 @@ impl Subdiagnostic for InvalidAbiReason { fn add_to_diag_with<G: EmissionGuarantee, F: SubdiagMessageOp<G>>( self, diag: &mut Diag<'_, G>, - _: F, + _: &F, ) { #[allow(rustc::untranslatable_diagnostic)] diag.note(self.0); |
