Skip to content

Commit e8d5230

Browse files
author
bors-servo
authored
Auto merge of rust-lang#1204 - Kobata:rustfmt-pr, r=emilio
Revert to only calling plain rustfmt rust-lang/rustup#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 rust-lang#1184
2 parents 04591f0 + 6e1e19e commit e8d5230

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/lib.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -1711,15 +1711,7 @@ impl Bindings {
17111711
let rustfmt = which::which("rustfmt")
17121712
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_owned()))?;
17131713

1714-
// Prefer using the `rustfmt-nightly` version of `rustmft`, if
1715-
// possible. It requires being run via `rustup run nightly ...`.
1716-
let mut cmd = if let Ok(rustup) = which::which("rustup") {
1717-
let mut cmd = Command::new(rustup);
1718-
cmd.args(&["run", "nightly", "rustfmt", "--"]);
1719-
cmd
1720-
} else {
1721-
Command::new(rustfmt)
1722-
};
1714+
let mut cmd = Command::new(rustfmt);
17231715

17241716
cmd
17251717
.stdin(Stdio::piped())

0 commit comments

Comments
 (0)