From 2f33093ed6377dbd3ffb94d41333d3e06b6efa3d Mon Sep 17 00:00:00 2001 From: Kornel Date: Tue, 12 Dec 2017 22:09:40 +0000 Subject: [PATCH] Remove message that prevents Cargo from working with --print=native-static-libs --- src/librustc_driver/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index d9b67e2d27f0c..f67425b233428 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -810,9 +810,8 @@ impl RustcDefaultCalls { PrintRequest::TargetCPUs | PrintRequest::TargetFeatures => { rustc_trans::print(*req, sess); } - PrintRequest::NativeStaticLibs => { - println!("Native static libs can be printed only during linking"); - } + // Any output here interferes with Cargo's parsing of other printed output + PrintRequest::NativeStaticLibs => {} } } return Compilation::Stop;