]> git.lizzy.rs Git - rust.git/commitdiff
Add back cargo-fmt binary (#1670)
authorRobin Stocker <robin@nibor.org>
Wed, 14 Jun 2017 04:16:51 +0000 (14:16 +1000)
committerRobin Stocker <robin@nibor.org>
Wed, 14 Jun 2017 04:16:51 +0000 (14:16 +1000)
When there are no `[[bin]]` sections, all the binaries in `src/bin` are
automatically picked up. When a section is added, that is no longer the
case, so all the binaries need to be specified explicitly.

Cargo.toml
tests/system.rs

index a0da1d6b68525f114e3aef78519993064d3d63b9..caf66bf4f74886a76da5e2d07872890b3b4e822b 100644 (file)
@@ -17,6 +17,9 @@ doctest = false
 [[bin]]
 name = "rustfmt"
 
+[[bin]]
+name = "cargo-fmt"
+
 [features]
 default = ["cargo-fmt"]
 cargo-fmt = []
index 970d9f0e2eb55542f1a3b01e1e8e4638f3d42c70..a6b7536111f20a296791cd07f0f1498d9c6e3b58 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-extern crate rustfmt;
+extern crate rustfmt_nightly as rustfmt;
 extern crate diff;
 extern crate regex;
 extern crate term;