@@ -230,25 +230,25 @@ impl<G: EmissionGuarantee> IntoDiagnostic<'_, G> for ThorinErrorWrapper {
230
230
thorin:: Error :: DecompressData ( _) => build ( fluent:: codegen_ssa_thorin_decompress_data) ,
231
231
thorin:: Error :: NamelessSection ( _, offset) => {
232
232
build ( fluent:: codegen_ssa_thorin_section_without_name)
233
- . arg_mv ( "offset" , format ! ( "0x{offset:08x}" ) )
233
+ . with_arg ( "offset" , format ! ( "0x{offset:08x}" ) )
234
234
}
235
235
thorin:: Error :: RelocationWithInvalidSymbol ( section, offset) => {
236
236
build ( fluent:: codegen_ssa_thorin_relocation_with_invalid_symbol)
237
- . arg_mv ( "section" , section)
238
- . arg_mv ( "offset" , format ! ( "0x{offset:08x}" ) )
237
+ . with_arg ( "section" , section)
238
+ . with_arg ( "offset" , format ! ( "0x{offset:08x}" ) )
239
239
}
240
240
thorin:: Error :: MultipleRelocations ( section, offset) => {
241
241
build ( fluent:: codegen_ssa_thorin_multiple_relocations)
242
- . arg_mv ( "section" , section)
243
- . arg_mv ( "offset" , format ! ( "0x{offset:08x}" ) )
242
+ . with_arg ( "section" , section)
243
+ . with_arg ( "offset" , format ! ( "0x{offset:08x}" ) )
244
244
}
245
245
thorin:: Error :: UnsupportedRelocation ( section, offset) => {
246
246
build ( fluent:: codegen_ssa_thorin_unsupported_relocation)
247
- . arg_mv ( "section" , section)
248
- . arg_mv ( "offset" , format ! ( "0x{offset:08x}" ) )
247
+ . with_arg ( "section" , section)
248
+ . with_arg ( "offset" , format ! ( "0x{offset:08x}" ) )
249
249
}
250
250
thorin:: Error :: MissingDwoName ( id) => build ( fluent:: codegen_ssa_thorin_missing_dwo_name)
251
- . arg_mv ( "id" , format ! ( "0x{id:08x}" ) ) ,
251
+ . with_arg ( "id" , format ! ( "0x{id:08x}" ) ) ,
252
252
thorin:: Error :: NoCompilationUnits => {
253
253
build ( fluent:: codegen_ssa_thorin_no_compilation_units)
254
254
}
@@ -258,7 +258,7 @@ impl<G: EmissionGuarantee> IntoDiagnostic<'_, G> for ThorinErrorWrapper {
258
258
}
259
259
thorin:: Error :: MissingRequiredSection ( section) => {
260
260
build ( fluent:: codegen_ssa_thorin_missing_required_section)
261
- . arg_mv ( "section" , section)
261
+ . with_arg ( "section" , section)
262
262
}
263
263
thorin:: Error :: ParseUnitAbbreviations ( _) => {
264
264
build ( fluent:: codegen_ssa_thorin_parse_unit_abbreviations)
@@ -272,31 +272,30 @@ impl<G: EmissionGuarantee> IntoDiagnostic<'_, G> for ThorinErrorWrapper {
272
272
thorin:: Error :: ParseUnit ( _) => build ( fluent:: codegen_ssa_thorin_parse_unit) ,
273
273
thorin:: Error :: IncompatibleIndexVersion ( section, format, actual) => {
274
274
build ( fluent:: codegen_ssa_thorin_incompatible_index_version)
275
- . arg_mv ( "section" , section)
276
- . arg_mv ( "actual" , actual)
277
- . arg_mv ( "format" , format)
275
+ . with_arg ( "section" , section)
276
+ . with_arg ( "actual" , actual)
277
+ . with_arg ( "format" , format)
278
278
}
279
279
thorin:: Error :: OffsetAtIndex ( _, index) => {
280
- build ( fluent:: codegen_ssa_thorin_offset_at_index) . arg_mv ( "index" , index)
280
+ build ( fluent:: codegen_ssa_thorin_offset_at_index) . with_arg ( "index" , index)
281
281
}
282
282
thorin:: Error :: StrAtOffset ( _, offset) => {
283
283
build ( fluent:: codegen_ssa_thorin_str_at_offset)
284
- . arg_mv ( "offset" , format ! ( "0x{offset:08x}" ) )
284
+ . with_arg ( "offset" , format ! ( "0x{offset:08x}" ) )
285
285
}
286
286
thorin:: Error :: ParseIndex ( _, section) => {
287
- build ( fluent:: codegen_ssa_thorin_parse_index) . arg_mv ( "section" , section)
287
+ build ( fluent:: codegen_ssa_thorin_parse_index) . with_arg ( "section" , section)
288
288
}
289
289
thorin:: Error :: UnitNotInIndex ( unit) => {
290
290
build ( fluent:: codegen_ssa_thorin_unit_not_in_index)
291
- . arg_mv ( "unit" , format ! ( "0x{unit:08x}" ) )
291
+ . with_arg ( "unit" , format ! ( "0x{unit:08x}" ) )
292
292
}
293
293
thorin:: Error :: RowNotInIndex ( _, row) => {
294
- build ( fluent:: codegen_ssa_thorin_row_not_in_index) . arg_mv ( "row" , row)
294
+ build ( fluent:: codegen_ssa_thorin_row_not_in_index) . with_arg ( "row" , row)
295
295
}
296
296
thorin:: Error :: SectionNotInRow => build ( fluent:: codegen_ssa_thorin_section_not_in_row) ,
297
- thorin:: Error :: EmptyUnit ( unit) => {
298
- build ( fluent:: codegen_ssa_thorin_empty_unit) . arg_mv ( "unit" , format ! ( "0x{unit:08x}" ) )
299
- }
297
+ thorin:: Error :: EmptyUnit ( unit) => build ( fluent:: codegen_ssa_thorin_empty_unit)
298
+ . with_arg ( "unit" , format ! ( "0x{unit:08x}" ) ) ,
300
299
thorin:: Error :: MultipleDebugInfoSection => {
301
300
build ( fluent:: codegen_ssa_thorin_multiple_debug_info_section)
302
301
}
@@ -305,10 +304,10 @@ impl<G: EmissionGuarantee> IntoDiagnostic<'_, G> for ThorinErrorWrapper {
305
304
}
306
305
thorin:: Error :: NotSplitUnit => build ( fluent:: codegen_ssa_thorin_not_split_unit) ,
307
306
thorin:: Error :: DuplicateUnit ( unit) => build ( fluent:: codegen_ssa_thorin_duplicate_unit)
308
- . arg_mv ( "unit" , format ! ( "0x{unit:08x}" ) ) ,
307
+ . with_arg ( "unit" , format ! ( "0x{unit:08x}" ) ) ,
309
308
thorin:: Error :: MissingReferencedUnit ( unit) => {
310
309
build ( fluent:: codegen_ssa_thorin_missing_referenced_unit)
311
- . arg_mv ( "unit" , format ! ( "0x{unit:08x}" ) )
310
+ . with_arg ( "unit" , format ! ( "0x{unit:08x}" ) )
312
311
}
313
312
thorin:: Error :: NoOutputObjectCreated => {
314
313
build ( fluent:: codegen_ssa_thorin_not_output_object_created)
@@ -317,19 +316,19 @@ impl<G: EmissionGuarantee> IntoDiagnostic<'_, G> for ThorinErrorWrapper {
317
316
build ( fluent:: codegen_ssa_thorin_mixed_input_encodings)
318
317
}
319
318
thorin:: Error :: Io ( e) => {
320
- build ( fluent:: codegen_ssa_thorin_io) . arg_mv ( "error" , format ! ( "{e}" ) )
319
+ build ( fluent:: codegen_ssa_thorin_io) . with_arg ( "error" , format ! ( "{e}" ) )
321
320
}
322
321
thorin:: Error :: ObjectRead ( e) => {
323
- build ( fluent:: codegen_ssa_thorin_object_read) . arg_mv ( "error" , format ! ( "{e}" ) )
322
+ build ( fluent:: codegen_ssa_thorin_object_read) . with_arg ( "error" , format ! ( "{e}" ) )
324
323
}
325
324
thorin:: Error :: ObjectWrite ( e) => {
326
- build ( fluent:: codegen_ssa_thorin_object_write) . arg_mv ( "error" , format ! ( "{e}" ) )
325
+ build ( fluent:: codegen_ssa_thorin_object_write) . with_arg ( "error" , format ! ( "{e}" ) )
327
326
}
328
327
thorin:: Error :: GimliRead ( e) => {
329
- build ( fluent:: codegen_ssa_thorin_gimli_read) . arg_mv ( "error" , format ! ( "{e}" ) )
328
+ build ( fluent:: codegen_ssa_thorin_gimli_read) . with_arg ( "error" , format ! ( "{e}" ) )
330
329
}
331
330
thorin:: Error :: GimliWrite ( e) => {
332
- build ( fluent:: codegen_ssa_thorin_gimli_write) . arg_mv ( "error" , format ! ( "{e}" ) )
331
+ build ( fluent:: codegen_ssa_thorin_gimli_write) . with_arg ( "error" , format ! ( "{e}" ) )
333
332
}
334
333
_ => unimplemented ! ( "Untranslated thorin error" ) ,
335
334
}
0 commit comments