diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-01-01 09:40:25 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-01 09:40:25 -0600 |
commit | e8d5230cc9df3c4f28c2ce49a0605f08c3764869 (patch) | |
tree | 297182372b1b3c68c4f2527595043c84d110ba4b | |
parent | 04591f01d96a5c05e690dcf49d19d8e003eac7bf (diff) | |
parent | 6e1e19e0a8e5959a5fa6f066f57267330d73e87f (diff) |
Auto merge of #1204 - Kobata:rustfmt-pr, r=emilio
Revert to only calling plain rustfmt
rust-lang-nursery/rustup.rs#1294 added a proxy executable for rustfmt that will act on the correct bundled rustfmt for the default release channel set by rustup.
And, assuming I'm reading the expected release notes correctly, it seems like rust 1.23, due out fairly shortly, will add the bundled version of rustfmt to stable.
This fixes #1184
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1711,15 +1711,7 @@ impl Bindings { let rustfmt = which::which("rustfmt") .map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_owned()))?; - // Prefer using the `rustfmt-nightly` version of `rustmft`, if - // possible. It requires being run via `rustup run nightly ...`. - let mut cmd = if let Ok(rustup) = which::which("rustup") { - let mut cmd = Command::new(rustup); - cmd.args(&["run", "nightly", "rustfmt", "--"]); - cmd - } else { - Command::new(rustfmt) - }; + let mut cmd = Command::new(rustfmt); cmd .stdin(Stdio::piped()) |