Skip to content

Commit 4118f62

Browse files
committed
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). :)
2 parents fbf0165 + 82e3b5c commit 4118f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miri-script/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl Command {
510510

511511
let mut cmd = cmd!(
512512
e.sh,
513-
"rustfmt +{toolchain} --edition=2021 --config-path {config_path} {flags...}"
513+
"rustfmt +{toolchain} --edition=2021 --config-path {config_path} --unstable-features --skip-children {flags...}"
514514
);
515515
eprintln!("$ {cmd} ...");
516516

0 commit comments

Comments
 (0)