rustfmt on linux crashing with `ignore`
command ran:
bazel run @rules_rust//:rustfmt --@rules_rust//:rustfmt.toml=//:rustfmt.toml --output_groups=+rustfmt_checks
rustfmt.toml: max_width = 100 imports_granularity = "Module" group_imports = "StdExternalCrate" ignore = ["third_party/"]
Managed to pin it down. It is related to the ignore config opt in rustfmt.toml.
I suppose it should be part of: https://github.com/rust-lang/rustfmt/issues/3395?
@otiv-emiel-vanseveren thanks for the report. I'm personally not familiar with bazel. Is this issue reproducible without using bazel? Also, Do you have a repo you can link to that can be used to reproduce this problem?
I'll see if I can reproduce it over the weekend.
@ytmimi,
Sorry for the late response, I've been a bit busy the last couple of weeks. Here is a reproducible using bazel: https://github.com/emielvanseveren/bazel-rustfmt-ignore. I have not tried with cargo. Steps are in readme!