This is an archive of the discontinued Mercurial Phabricator instance.

rust: move rustfmt.toml to repo root so it can be used by `hg fix`
ClosedPublic

Authored by martinvonz on Oct 1 2020, 12:20 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

martinvonz created this revision.Oct 1 2020, 12:20 PM
martinvonz updated this revision to Diff 22976.Oct 1 2020, 12:21 PM
Alphare accepted this revision.Oct 2 2020, 3:17 AM
Alphare added a subscriber: Alphare.

Thanks

pulkit accepted this revision.Oct 2 2020, 3:31 AM
This revision is now accepted and ready to land.Oct 2 2020, 3:31 AM
rust/hgcli/src/main.rs