Skip to content

Commit cae8f93

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 a346b29 + f28772f commit cae8f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/miri-script/src/commands.rs

+1-1
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)