Skip to content

Commit

Permalink
Auto merge of rust-lang#3048 - RalfJung:fmt-skip-children, r=RalfJung
Browse files Browse the repository at this point in the history
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). :)
  • Loading branch information
bors committed Sep 1, 2023
2 parents a346b29 + f28772f commit cae8f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/miri/miri-script/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ impl Command {

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} ...");

Expand Down

0 comments on commit cae8f93

Please sign in to comment.