Skip to content

Commit 35453a8

Browse files
committed
Add tidy-alphabetical for cross-crate attribute match
1 parent a413f77 commit 35453a8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

compiler/rustc_attr_data_structures/src/encode_cross_crate.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,41 @@ impl AttributeKind {
1212
use EncodeCrossCrate::*;
1313

1414
match self {
15+
// tidy-alphabetical-start
1516
Align { .. } => No,
1617
AllowConstFnUnstable(..) => No,
1718
AllowInternalUnstable(..) => Yes,
1819
AsPtr(..) => Yes,
1920
BodyStability { .. } => No,
21+
Cold(..) => No,
2022
Confusables { .. } => Yes,
23+
ConstContinue(..) => No,
2124
ConstStability { .. } => Yes,
2225
ConstStabilityIndirect => No,
2326
Deprecation { .. } => Yes,
2427
DocComment { .. } => Yes,
2528
ExportName { .. } => Yes,
2629
Inline(..) => No,
27-
LinkSection { .. } => No,
28-
MacroTransparency(..) => Yes,
29-
Repr(..) => No,
30-
Stability { .. } => Yes,
31-
Cold(..) => No,
32-
ConstContinue(..) => No,
3330
LinkName { .. } => Yes,
31+
LinkSection { .. } => No,
3432
LoopMatch(..) => No,
33+
MacroTransparency(..) => Yes,
3534
MayDangle(..) => No,
3635
MustUse { .. } => Yes,
3736
Naked(..) => No,
3837
NoMangle(..) => No,
3938
Optimize(..) => No,
4039
PubTransparent(..) => Yes,
40+
Repr(..) => No,
4141
RustcLayoutScalarValidRangeEnd(..) => Yes,
4242
RustcLayoutScalarValidRangeStart(..) => Yes,
4343
RustcObjectLifetimeDefault => No,
4444
SkipDuringMethodDispatch { .. } => No,
45+
Stability { .. } => Yes,
4546
TargetFeature(..) => No,
4647
TrackCaller(..) => Yes,
4748
Used { .. } => No,
49+
// tidy-alphabetical-end
4850
}
4951
}
5052
}

0 commit comments

Comments
 (0)