From 8100d2755185251d0c0183c545a81ebf3c19ee82 Mon Sep 17 00:00:00 2001 From: surechen Date: Sat, 17 Feb 2024 17:19:10 +0800 Subject: [PATCH] Remove unnecessary `use mb;` in metebuild. Check this in PR #117772 in rustc. --- src/cargo/core/compiler/custom_build.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cargo/core/compiler/custom_build.rs b/src/cargo/core/compiler/custom_build.rs index f66e448cbf3..bd88e8e8f8f 100644 --- a/src/cargo/core/compiler/custom_build.rs +++ b/src/cargo/core/compiler/custom_build.rs @@ -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));