From a19d3368e1b4e505b60c5267e3065f061e126d18 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 28 Jan 2015 22:42:17 -0800 Subject: [PATCH] rustc: Print out a prettier version of crate types Closes rust-lang/cargo#1234 --- src/librustc_driver/driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 6e76519ce23..38937ebd2af 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -882,7 +882,7 @@ pub fn collect_crate_types(session: &Session, let res = !link::invalid_output_for_target(session, *crate_type); if !res { - session.warn(&format!("dropping unsupported crate type `{:?}` \ + session.warn(&format!("dropping unsupported crate type `{}` \ for target `{}`", *crate_type, session.opts.target_triple)[]); }