Skip to content

Commit 3c00626

Browse files
committed
Add some tidy-alphabetical
1 parent ee1c3b3 commit 3c00626

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/std/src/io/error.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ pub enum ErrorKind {
387387
impl 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

src/librustdoc/clean/types.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,7 @@ impl SubstParam {
25402540
mod 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
}

0 commit comments

Comments
 (0)