File tree 1 file changed +1
-8
lines changed
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,6 @@ pub fn build(build: &mut Build) {
66
66
}
67
67
68
68
/// Invokes `cargo metadata` to get package metadata of each workspace member.
69
- ///
70
- /// Note that `src/tools/cargo` is no longer a workspace member but we still
71
- /// treat it as one here, by invoking an additional `cargo metadata` command.
72
69
fn workspace_members ( build : & Build ) -> impl Iterator < Item = Package > {
73
70
let collect_metadata = |manifest_path| {
74
71
let mut cargo = Command :: new ( & build. initial_cargo ) ;
@@ -89,12 +86,8 @@ fn workspace_members(build: &Build) -> impl Iterator<Item = Package> {
89
86
90
87
// Collects `metadata.packages` from all workspaces.
91
88
let packages = collect_metadata ( "Cargo.toml" ) ;
92
- let cargo_packages = collect_metadata ( "src/tools/cargo/Cargo.toml" ) ;
93
89
let ra_packages = collect_metadata ( "src/tools/rust-analyzer/Cargo.toml" ) ;
94
90
let bootstrap_packages = collect_metadata ( "src/bootstrap/Cargo.toml" ) ;
95
91
96
- // We only care about the root package from `src/tool/cargo` workspace.
97
- let cargo_package = cargo_packages. into_iter ( ) . find ( |pkg| pkg. name == "cargo" ) . into_iter ( ) ;
98
-
99
- packages. into_iter ( ) . chain ( cargo_package) . chain ( ra_packages) . chain ( bootstrap_packages)
92
+ packages. into_iter ( ) . chain ( ra_packages) . chain ( bootstrap_packages)
100
93
}
You can’t perform that action at this time.
0 commit comments