rust: move rustfmt.toml to repo root so it can be used by `hg fix`
`hg fix` runs the formatters from the repo root so it doesn't pick up the `rustfmt.toml` configs we had in each the `hg-core`, `hg-cpython`, and `rhg` packages, which resulted in warnings about `async fn` not existing in Rust 2015. This patch moves the `rustfmt.toml` file to the root so `hg fix` will use it. By putting the `rustfmt.toml` file in a higher-level directory, it also applies to the `chg` and `hgcli` packages. That makes `test-check-rust-format.t` fail, so this patch also applies the new formatting rules to those packages. Differential Revision: https://phab.mercurial-scm.org/D9142
Showing
- contrib/examples/fix.hgrc 1 addition, 1 deletioncontrib/examples/fix.hgrc
- rust/chg/src/clientext.rs 15 additions, 3 deletionsrust/chg/src/clientext.rs
- rust/chg/src/locator.rs 25 additions, 7 deletionsrust/chg/src/locator.rs
- rust/chg/src/message.rs 33 additions, 11 deletionsrust/chg/src/message.rs
- rust/chg/src/procutil.rs 6 additions, 2 deletionsrust/chg/src/procutil.rs
- rust/chg/src/runcommand.rs 4 additions, 2 deletionsrust/chg/src/runcommand.rs
- rust/chg/src/uihandler.rs 10 additions, 3 deletionsrust/chg/src/uihandler.rs
- rust/hg-cpython/rustfmt.toml 0 additions, 3 deletionsrust/hg-cpython/rustfmt.toml
- rust/hgcli/build.rs 3 additions, 1 deletionrust/hgcli/build.rs
- rust/hgcli/src/main.rs 11 additions, 10 deletionsrust/hgcli/src/main.rs
- rust/rhg/rustfmt.toml 0 additions, 3 deletionsrust/rhg/rustfmt.toml
- rustfmt.toml 1 addition, 0 deletionsrustfmt.toml
- tests/test-check-code.t 1 addition, 0 deletionstests/test-check-code.t
Loading
Please register or sign in to comment