1
Fork 0

Rollup merge of #112933 - TaKO8Ki:avoid-&format-in-error-message-code, r=oli-obk

Avoid `&format` in error message code

follow-up of #111633
This commit is contained in:
Matthias Krüger 2023-06-23 13:18:14 +02:00 committed by GitHub
commit 4e96aba8f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 9 deletions

View file

@ -278,7 +278,7 @@ impl<'cx, 'tcx> crate::MirBorrowckCtxt<'cx, 'tcx> {
move_from_span: Span,
move_from_desc: &str,
) -> DiagnosticBuilder<'cx, ErrorGuaranteed> {
struct_span_err!(self, move_from_span, E0507, "cannot move out of {}", move_from_desc,)
struct_span_err!(self, move_from_span, E0507, "cannot move out of {}", move_from_desc)
}
/// Signal an error due to an attempt to move out of the interior