Auto merge of #3048 - RalfJung:fmt-skip-children, r=RalfJung

add '--skip-children' to rustfmt invocation

This finally fixes the issue that we format the same file many times (and `./miri fmt --check` shows duplicate diffs). :)
This commit is contained in:
bors 2023-09-01 06:31:39 +00:00
commit cae8f934f5

View File

@ -510,7 +510,7 @@ fn fmt(flags: Vec<OsString>) -> Result<()> {
let mut cmd = cmd!(
e.sh,
"rustfmt +{toolchain} --edition=2021 --config-path {config_path} {flags...}"
"rustfmt +{toolchain} --edition=2021 --config-path {config_path} --unstable-features --skip-children {flags...}"
);
eprintln!("$ {cmd} ...");