Skip to content

Commit 704f2ca

Browse files
committed
Tidy up Cargo.toml files.
- Add some missing `tidy-alphabetical-*` markers. - Remove some unnecessary blank lines.
1 parent 1901dde commit 704f2ca

File tree

16 files changed

+44
-14
lines changed

16 files changed

+44
-14
lines changed

compiler/rustc_ast_ir/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ rustc_span = { path = "../rustc_span", optional = true }
1212
# tidy-alphabetical-end
1313

1414
[features]
15+
# tidy-alphabetical-start
1516
default = ["nightly"]
1617
nightly = [
17-
"dep:rustc_serialize",
18-
"dep:rustc_span",
1918
"dep:rustc_data_structures",
2019
"dep:rustc_macros",
20+
"dep:rustc_serialize",
21+
"dep:rustc_span",
2122
]
23+
# tidy-alphabetical-end

compiler/rustc_codegen_llvm/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ tracing = "0.1"
4545
# tidy-alphabetical-end
4646

4747
[features]
48+
# tidy-alphabetical-start
4849
check_only = ["rustc_llvm/check_only"]
50+
# tidy-alphabetical-end
51+

compiler/rustc_driver_impl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ version = "0.0.0"
44
edition = "2024"
55

66
[dependencies]
7-
jiff = { version = "0.2.5", default-features = false, features = ["std"] }
87
# tidy-alphabetical-start
8+
jiff = { version = "0.2.5", default-features = false, features = ["std"] }
99
rustc_abi = { path = "../rustc_abi" }
1010
rustc_ast = { path = "../rustc_ast" }
1111
rustc_ast_lowering = { path = "../rustc_ast_lowering" }

compiler/rustc_index/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ smallvec = "1.8.1"
1515
# tidy-alphabetical-start
1616
default = ["nightly"]
1717
nightly = [
18-
"dep:rustc_serialize",
1918
"dep:rustc_macros",
19+
"dep:rustc_serialize",
2020
"rustc_index_macros/nightly",
2121
]
2222
rustc_randomized_layouts = []

compiler/rustc_index_macros/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ edition = "2024"
77
proc-macro = true
88

99
[dependencies]
10-
syn = { version = "2.0.9", features = ["full", "extra-traits"] }
10+
# tidy-alphabetical-start
1111
proc-macro2 = "1"
1212
quote = "1"
13+
syn = { version = "2.0.9", features = ["full", "extra-traits"] }
14+
# tidy-alphabetical-end
1315

1416
[features]
17+
# tidy-alphabetical-start
1518
nightly = []
19+
# tidy-alphabetical-end
20+

compiler/rustc_llvm/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ cc = "=1.2.16"
1616
# tidy-alphabetical-end
1717

1818
[features]
19+
# tidy-alphabetical-start
1920
# Used by ./x.py check --compile-time-deps to skip building C++ code
2021
check_only = []
22+
# tidy-alphabetical-end

compiler/rustc_mir_build/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ edition = "2024"
66
[dependencies]
77
# tidy-alphabetical-start
88
itertools = "0.12"
9-
109
rustc_abi = { path = "../rustc_abi" }
1110
rustc_apfloat = "0.2.0"
1211
rustc_arena = { path = "../rustc_arena" }

compiler/rustc_next_trait_solver/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ tracing = "0.1"
1515
# tidy-alphabetical-end
1616

1717
[features]
18+
# tidy-alphabetical-start
1819
default = ["nightly"]
1920
nightly = [
2021
"dep:rustc_data_structures",
2122
"dep:rustc_macros",
2223
"rustc_index/nightly",
2324
"rustc_type_ir/nightly",
2425
]
26+
# tidy-alphabetical-end

compiler/rustc_parse/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ unicode-width = "0.2.0"
2626
# tidy-alphabetical-end
2727

2828
[dev-dependencies]
29+
# tidy-alphabetical-start
2930
termcolor = "1.2"
31+
# tidy-alphabetical-end
32+
3033

compiler/rustc_pattern_analysis/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ edition = "2024"
66
[dependencies]
77
# tidy-alphabetical-start
88
rustc-hash = "2.0.0"
9-
109
rustc_abi = { path = "../rustc_abi", optional = true }
1110
rustc_apfloat = "0.2.0"
1211
rustc_arena = { path = "../rustc_arena", optional = true }
@@ -24,10 +23,13 @@ tracing = "0.1"
2423
# tidy-alphabetical-end
2524

2625
[dev-dependencies]
26+
# tidy-alphabetical-start
2727
tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "ansi"] }
2828
tracing-tree = "0.3.0"
29+
# tidy-alphabetical-end
2930

3031
[features]
32+
# tidy-alphabetical-start
3133
default = ["rustc"]
3234
rustc = [
3335
"dep:rustc_abi",
@@ -43,3 +45,4 @@ rustc = [
4345
"smallvec/may_dangle",
4446
"rustc_index/nightly",
4547
]
48+
# tidy-alphabetical-end

0 commit comments

Comments
 (0)