File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ pub enum ErrorKind {
387
387
impl ErrorKind {
388
388
pub ( crate ) fn as_str ( & self ) -> & ' static str {
389
389
use ErrorKind :: * ;
390
- // Strictly alphabetical, please. (Sadly rustfmt cannot do this yet.)
390
+ // tidy- alphabetical-start
391
391
match * self {
392
392
AddrInUse => "address in use" ,
393
393
AddrNotAvailable => "address not available" ,
@@ -431,6 +431,7 @@ impl ErrorKind {
431
431
WouldBlock => "operation would block" ,
432
432
WriteZero => "write zero" ,
433
433
}
434
+ // tidy-alphabetical-end
434
435
}
435
436
}
436
437
Original file line number Diff line number Diff line change @@ -2540,7 +2540,7 @@ impl SubstParam {
2540
2540
mod size_asserts {
2541
2541
use super :: * ;
2542
2542
use rustc_data_structures:: static_assert_size;
2543
- // These are in alphabetical order, which is easy to maintain.
2543
+ // tidy- alphabetical-start
2544
2544
static_assert_size ! ( Crate , 72 ) ; // frequently moved by-value
2545
2545
static_assert_size ! ( DocFragment , 32 ) ;
2546
2546
static_assert_size ! ( GenericArg , 48 ) ;
@@ -2550,4 +2550,5 @@ mod size_asserts {
2550
2550
static_assert_size ! ( ItemKind , 88 ) ;
2551
2551
static_assert_size ! ( PathSegment , 40 ) ;
2552
2552
static_assert_size ! ( Type , 48 ) ;
2553
+ // tidy-alphabetical-end
2553
2554
}
You can’t perform that action at this time.
0 commit comments