Skip to content

Commit

Permalink
Remove unnecessary use mb; in metebuild.
Browse files Browse the repository at this point in the history
Check this in PR #117772 in rustc.
  • Loading branch information
surechen committed Feb 17, 2024
1 parent 9d23d30 commit 8100d27
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cargo/core/compiler/custom_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1077,9 +1077,6 @@ fn prepare_metabuild(cx: &Context<'_, '_>, unit: &Unit, deps: &[String]) -> Carg
.map(|d| d.unit.target.crate_name())
})
.collect();
for dep in &meta_deps {
output.push(format!("use {};\n", dep));
}
output.push("fn main() {\n".to_string());
for dep in &meta_deps {
output.push(format!(" {}::metabuild();\n", dep));
Expand Down

0 comments on commit 8100d27

Please sign in to comment.