Skip to content

Commit fb54b45

Browse files
authored
Rollup merge of rust-lang#128685 - bjorn3:rust_src_remove_leftover, r=onur-ozkan
Remove the root Cargo.lock from the rust-src component The Cargo.lock in library/ should be used instead. Including the Cargo.lock for the root workspace is both unnecessary and confusing. Missed in rust-lang#128534
2 parents 5f9ebb5 + e4e1b9b commit fb54b45

File tree

1 file changed

+0
-4
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+0
-4
lines changed

src/bootstrap/src/core/build_steps/dist.rs

-4
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,6 @@ impl Step for Src {
918918
// translation code in `imported_source_files` in `src/librustc_metadata/rmeta/decoder.rs`
919919
let dst_src = tarball.image_dir().join("lib/rustlib/src/rust");
920920

921-
let src_files = ["Cargo.lock"];
922921
// This is the reduced set of paths which will become the rust-src component
923922
// (essentially libstd and all of its path dependencies).
924923
copy_src_dirs(
@@ -937,9 +936,6 @@ impl Step for Src {
937936
],
938937
&dst_src,
939938
);
940-
for file in src_files.iter() {
941-
builder.copy_link(&builder.src.join(file), &dst_src.join(file));
942-
}
943939

944940
tarball.generate()
945941
}

0 commit comments

Comments
 (0)