Pass translation closure to add_to_diag_with() as reference
This commit is contained in:
parent
13eb8c736c
commit
5646b65cf5
17 changed files with 41 additions and 41 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue