File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 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) {
6666}
6767
6868/// 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.
7269fn workspace_members ( build : & Build ) -> impl Iterator < Item = Package > {
7370 let collect_metadata = |manifest_path| {
7471 let mut cargo = Command :: new ( & build. initial_cargo ) ;
@@ -89,12 +86,8 @@ fn workspace_members(build: &Build) -> impl Iterator<Item = Package> {
8986
9087 // Collects `metadata.packages` from all workspaces.
9188 let packages = collect_metadata ( "Cargo.toml" ) ;
92- let cargo_packages = collect_metadata ( "src/tools/cargo/Cargo.toml" ) ;
9389 let ra_packages = collect_metadata ( "src/tools/rust-analyzer/Cargo.toml" ) ;
9490 let bootstrap_packages = collect_metadata ( "src/bootstrap/Cargo.toml" ) ;
9591
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)
10093}
You can’t perform that action at this time.
0 commit comments