Skip to content

Commit 7dfbf59

Browse files
committed
cleanup: Remove duplicate library names from Cargo.tomls
1 parent 85fbf49 commit 7dfbf59

File tree

7 files changed

+1
-10
lines changed

7 files changed

+1
-10
lines changed

compiler/rustc/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ name = "rustc-main"
44
version = "0.0.0"
55
edition = '2018'
66

7-
[[bin]]
8-
name = "rustc_binary"
9-
path = "src/main.rs"
10-
117
[dependencies]
128
rustc_driver = { path = "../rustc_driver" }
139

compiler/rustc_lexer/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Rust lexer used by rustc. No stability guarantees are provided.
1414
# This will be used when publishing this crate as `rustc-ap-rustc_lexer`.
1515
[lib]
1616
doctest = false
17-
name = "rustc_lexer"
1817

1918
# Note that this crate purposefully does not depend on other rustc crates
2019
[dependencies]

src/bootstrap/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.0.0"
55
edition = "2018"
66

77
[lib]
8-
name = "bootstrap"
98
path = "lib.rs"
109
doctest = false
1110

src/bootstrap/compile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ impl Step for Assemble {
819819

820820
// Link the compiler binary itself into place
821821
let out_dir = builder.cargo_out(build_compiler, Mode::Rustc, host);
822-
let rustc = out_dir.join(exe("rustc_binary", host));
822+
let rustc = out_dir.join(exe("rustc-main", host));
823823
let bindir = sysroot.join("bin");
824824
t!(fs::create_dir_all(&bindir));
825825
let compiler = builder.rustc(target_compiler);

src/build_helper/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ authors = ["The Rust Project Developers"]
55
edition = "2018"
66

77
[lib]
8-
name = "build_helper"
98
path = "lib.rs"

src/librustc_llvm/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.0.0"
55
edition = "2018"
66

77
[lib]
8-
name = "rustc_llvm"
98
path = "lib.rs"
109

1110
[features]

src/librustdoc/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.0.0"
55
edition = "2018"
66

77
[lib]
8-
name = "rustdoc"
98
path = "lib.rs"
109

1110
[dependencies]

0 commit comments

Comments
 (0)