File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ pub enum ErrorKind {
387387impl ErrorKind {
388388 pub ( crate ) fn as_str ( & self ) -> & ' static str {
389389 use ErrorKind :: * ;
390- // Strictly alphabetical, please. (Sadly rustfmt cannot do this yet.)
390+ // tidy- alphabetical-start
391391 match * self {
392392 AddrInUse => "address in use" ,
393393 AddrNotAvailable => "address not available" ,
@@ -431,6 +431,7 @@ impl ErrorKind {
431431 WouldBlock => "operation would block" ,
432432 WriteZero => "write zero" ,
433433 }
434+ // tidy-alphabetical-end
434435 }
435436}
436437
Original file line number Diff line number Diff line change @@ -2540,7 +2540,7 @@ impl SubstParam {
25402540mod size_asserts {
25412541 use super :: * ;
25422542 use rustc_data_structures:: static_assert_size;
2543- // These are in alphabetical order, which is easy to maintain.
2543+ // tidy- alphabetical-start
25442544 static_assert_size ! ( Crate , 72 ) ; // frequently moved by-value
25452545 static_assert_size ! ( DocFragment , 32 ) ;
25462546 static_assert_size ! ( GenericArg , 48 ) ;
@@ -2550,4 +2550,5 @@ mod size_asserts {
25502550 static_assert_size ! ( ItemKind , 88 ) ;
25512551 static_assert_size ! ( PathSegment , 40 ) ;
25522552 static_assert_size ! ( Type , 48 ) ;
2553+ // tidy-alphabetical-end
25532554}
You can’t perform that action at this time.
0 commit comments