1
Fork 0

middle: translation in LintDiagnosticBuilder

Accept `DiagnosticMessage` in `LintDiagnosticBuilder::build` so that
lints can be built with translatable diagnostic messages.

Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
David Wood 2022-06-27 11:38:45 +01:00
parent a9eb9c52f3
commit 7d2eba6311
5 changed files with 8 additions and 7 deletions

View file

@ -550,7 +550,7 @@ impl<'a, 'tcx> ConstToPat<'a, 'tcx> {
id,
span,
|lint| {
lint.build(&msg).emit();
lint.build(msg).emit();
},
);
}