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:
commit
cae8f934f5
@ -510,7 +510,7 @@ impl Command {
|
|||||||
|
|
||||||
let mut cmd = cmd!(
|
let mut cmd = cmd!(
|
||||||
e.sh,
|
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} ...");
|
eprintln!("$ {cmd} ...");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user