fn group_roots(packages: &[Package]) -> Vec<Group>
Group every package’s crate roots by edition. rustfmt walks mod declarations itself, so these roots transitively cover every file that cargo fmt would format.
rustfmt
mod
cargo fmt