Skip to content

Commit 4c4f7a3

Browse files
Fix some tidy errors in ty::codec.
1 parent cb1ff24 commit 4c4f7a3

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/librustc/ty/codec.rs

+16-8
Original file line numberDiff line numberDiff line change
@@ -318,45 +318,52 @@ macro_rules! implement_ty_decoder {
318318
// the caller to pick any lifetime for 'tcx, including 'static,
319319
// by using the unspecialized proxies to them.
320320

321-
impl<$($typaram),*> SpecializedDecoder<CrateNum> for $DecoderName<$($typaram),*> {
321+
impl<$($typaram),*> SpecializedDecoder<CrateNum>
322+
for $DecoderName<$($typaram),*> {
322323
fn specialized_decode(&mut self) -> Result<CrateNum, Self::Error> {
323324
decode_cnum(self)
324325
}
325326
}
326327

327-
impl<$($typaram),*> SpecializedDecoder<ty::Ty<'tcx>> for $DecoderName<$($typaram),*> {
328+
impl<$($typaram),*> SpecializedDecoder<ty::Ty<'tcx>>
329+
for $DecoderName<$($typaram),*> {
328330
fn specialized_decode(&mut self) -> Result<ty::Ty<'tcx>, Self::Error> {
329331
decode_ty(self)
330332
}
331333
}
332334

333335
impl<$($typaram),*> SpecializedDecoder<ty::GenericPredicates<'tcx>>
334336
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> {
336339
decode_predicates(self)
337340
}
338341
}
339342

340-
impl<$($typaram),*> SpecializedDecoder<&'tcx Substs<'tcx>> for $DecoderName<$($typaram),*> {
343+
impl<$($typaram),*> SpecializedDecoder<&'tcx Substs<'tcx>>
344+
for $DecoderName<$($typaram),*> {
341345
fn specialized_decode(&mut self) -> Result<&'tcx Substs<'tcx>, Self::Error> {
342346
decode_substs(self)
343347
}
344348
}
345349

346-
impl<$($typaram),*> SpecializedDecoder<ty::Region<'tcx>> for $DecoderName<$($typaram),*> {
350+
impl<$($typaram),*> SpecializedDecoder<ty::Region<'tcx>>
351+
for $DecoderName<$($typaram),*> {
347352
fn specialized_decode(&mut self) -> Result<ty::Region<'tcx>, Self::Error> {
348353
decode_region(self)
349354
}
350355
}
351356

352357
impl<$($typaram),*> SpecializedDecoder<&'tcx ty::Slice<ty::Ty<'tcx>>>
353358
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> {
355361
decode_ty_slice(self)
356362
}
357363
}
358364

359-
impl<$($typaram),*> SpecializedDecoder<&'tcx ty::AdtDef> for $DecoderName<$($typaram),*> {
365+
impl<$($typaram),*> SpecializedDecoder<&'tcx ty::AdtDef>
366+
for $DecoderName<$($typaram),*> {
360367
fn specialized_decode(&mut self) -> Result<&'tcx ty::AdtDef, Self::Error> {
361368
decode_adt_def(self)
362369
}
@@ -370,7 +377,8 @@ macro_rules! implement_ty_decoder {
370377
}
371378
}
372379

373-
impl<$($typaram),*> SpecializedDecoder<ByteArray<'tcx>> for $DecoderName<$($typaram),*> {
380+
impl<$($typaram),*> SpecializedDecoder<ByteArray<'tcx>>
381+
for $DecoderName<$($typaram),*> {
374382
fn specialized_decode(&mut self) -> Result<ByteArray<'tcx>, Self::Error> {
375383
decode_byte_array(self)
376384
}

0 commit comments

Comments
 (0)