From: rleungx Date: Tue, 27 Mar 2018 12:54:18 +0000 (+0800) Subject: address comment X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~5^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=967f0944a1ea9d2e2bcb37e12c9e01074ca720d2;p=cargo.git address comment --- diff --git a/src/cargo/ops/cargo_rustc/context/mod.rs b/src/cargo/ops/cargo_rustc/context/mod.rs index 1af18387d..2865e4842 100644 --- a/src/cargo/ops/cargo_rustc/context/mod.rs +++ b/src/cargo/ops/cargo_rustc/context/mod.rs @@ -761,10 +761,11 @@ impl<'a, 'cfg> Context<'a, 'cfg> { if !unsupported.is_empty() { bail!( "cannot compile `{}` package, because target `{}` \ - does not support the `{}` crate types", + does not support the `{}` crate type{}", unit.pkg, self.target_triple(), - unsupported.join(", ") + unsupported.join(", "), + if unsupported.len() == 1 { "" } else { "s" } ) } bail!(