projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee9cab
)
address comment
author
rleungx
<rleungx@gmail.com>
Tue, 27 Mar 2018 12:54:18 +0000
(20:54 +0800)
committer
rleungx
<rleungx@gmail.com>
Tue, 27 Mar 2018 12:58:09 +0000
(20:58 +0800)
src/cargo/ops/cargo_rustc/context/mod.rs
patch
|
blob
|
history
diff --git
a/src/cargo/ops/cargo_rustc/context/mod.rs
b/src/cargo/ops/cargo_rustc/context/mod.rs
index 1af18387d6163d139e9bb714f9ac2ba9571b94a3..2865e4842cca23af5974fbb7ed3f336e3a471a44 100644
(file)
--- 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 type
s
",
+ does not support the `{}` crate type
{}
",
unit.pkg,
self.target_triple(),
- unsupported.join(", ")
+ unsupported.join(", "),
+ if unsupported.len() == 1 { "" } else { "s" }
)
}
bail!(