@@ -318,45 +318,52 @@ macro_rules! implement_ty_decoder {
318
318
// the caller to pick any lifetime for 'tcx, including 'static,
319
319
// by using the unspecialized proxies to them.
320
320
321
- impl <$( $typaram) ,* > SpecializedDecoder <CrateNum > for $DecoderName<$( $typaram) ,* > {
321
+ impl <$( $typaram) ,* > SpecializedDecoder <CrateNum >
322
+ for $DecoderName<$( $typaram) ,* > {
322
323
fn specialized_decode( & mut self ) -> Result <CrateNum , Self :: Error > {
323
324
decode_cnum( self )
324
325
}
325
326
}
326
327
327
- impl <$( $typaram) ,* > SpecializedDecoder <ty:: Ty <' tcx>> for $DecoderName<$( $typaram) ,* > {
328
+ impl <$( $typaram) ,* > SpecializedDecoder <ty:: Ty <' tcx>>
329
+ for $DecoderName<$( $typaram) ,* > {
328
330
fn specialized_decode( & mut self ) -> Result <ty:: Ty <' tcx>, Self :: Error > {
329
331
decode_ty( self )
330
332
}
331
333
}
332
334
333
335
impl <$( $typaram) ,* > SpecializedDecoder <ty:: GenericPredicates <' tcx>>
334
336
for $DecoderName<$( $typaram) ,* > {
335
- fn specialized_decode( & mut self ) -> Result <ty:: GenericPredicates <' tcx>, Self :: Error > {
337
+ fn specialized_decode( & mut self )
338
+ -> Result <ty:: GenericPredicates <' tcx>, Self :: Error > {
336
339
decode_predicates( self )
337
340
}
338
341
}
339
342
340
- impl <$( $typaram) ,* > SpecializedDecoder <& ' tcx Substs <' tcx>> for $DecoderName<$( $typaram) ,* > {
343
+ impl <$( $typaram) ,* > SpecializedDecoder <& ' tcx Substs <' tcx>>
344
+ for $DecoderName<$( $typaram) ,* > {
341
345
fn specialized_decode( & mut self ) -> Result <& ' tcx Substs <' tcx>, Self :: Error > {
342
346
decode_substs( self )
343
347
}
344
348
}
345
349
346
- impl <$( $typaram) ,* > SpecializedDecoder <ty:: Region <' tcx>> for $DecoderName<$( $typaram) ,* > {
350
+ impl <$( $typaram) ,* > SpecializedDecoder <ty:: Region <' tcx>>
351
+ for $DecoderName<$( $typaram) ,* > {
347
352
fn specialized_decode( & mut self ) -> Result <ty:: Region <' tcx>, Self :: Error > {
348
353
decode_region( self )
349
354
}
350
355
}
351
356
352
357
impl <$( $typaram) ,* > SpecializedDecoder <& ' tcx ty:: Slice <ty:: Ty <' tcx>>>
353
358
for $DecoderName<$( $typaram) ,* > {
354
- fn specialized_decode( & mut self ) -> Result <& ' tcx ty:: Slice <ty:: Ty <' tcx>>, Self :: Error > {
359
+ fn specialized_decode( & mut self )
360
+ -> Result <& ' tcx ty:: Slice <ty:: Ty <' tcx>>, Self :: Error > {
355
361
decode_ty_slice( self )
356
362
}
357
363
}
358
364
359
- impl <$( $typaram) ,* > SpecializedDecoder <& ' tcx ty:: AdtDef > for $DecoderName<$( $typaram) ,* > {
365
+ impl <$( $typaram) ,* > SpecializedDecoder <& ' tcx ty:: AdtDef >
366
+ for $DecoderName<$( $typaram) ,* > {
360
367
fn specialized_decode( & mut self ) -> Result <& ' tcx ty:: AdtDef , Self :: Error > {
361
368
decode_adt_def( self )
362
369
}
@@ -370,7 +377,8 @@ macro_rules! implement_ty_decoder {
370
377
}
371
378
}
372
379
373
- impl <$( $typaram) ,* > SpecializedDecoder <ByteArray <' tcx>> for $DecoderName<$( $typaram) ,* > {
380
+ impl <$( $typaram) ,* > SpecializedDecoder <ByteArray <' tcx>>
381
+ for $DecoderName<$( $typaram) ,* > {
374
382
fn specialized_decode( & mut self ) -> Result <ByteArray <' tcx>, Self :: Error > {
375
383
decode_byte_array( self )
376
384
}
0 commit comments