rust/clippy_dev/src
Samuel Tardieu 3da4c1033a
Improve speed of cargo dev fmt (#14862)
This stops using `cargo fmt` and instead calls rustfmt directly with the
list of all files.

All `cargo fmt` does is find the crate roots and passes the edition from
`cargo.toml`. Since the edition is set in `rustfmt.toml` for the test
files and we're already iterating through all the files this is not
needed.

`--skip-children` is used since we already pass all the files, so the
automatic detection isn't buying us anything other than running slower.

~Second commit~ (part of the first commit now) is a change to only use
the `ignore` option in `rustfmt.toml` rather than having a way in `cargo
dev fmt` to ignore files.

r? @samueltardieu

changelog: none
2025-05-21 20:31:46 +00:00
..
setup Merge commit '0621446356' into clippy-subtree-update 2025-04-22 18:24:43 +02:00
deprecate_lint.rs clippy_dev: order deprecated_lints.rs in update_lints 2025-05-16 06:43:52 -04:00
dogfood.rs clippy_dev: Set the current directory to clippy's root path. 2025-05-12 17:07:52 -04:00
fmt.rs Add expect_action helper to clippy_dev 2025-05-21 15:09:35 -04:00
lib.rs clippy_dev: refactor rustfmt calls 2025-05-17 06:11:19 -04:00
lint.rs Merge commit '9f9a822509' into clippy-subtree-update 2025-02-28 23:27:09 +01:00
main.rs Improve speed of cargo dev fmt. 2025-05-21 15:09:35 -04:00
new_lint.rs clippy_dev: Refactor token parsing to avoid macros. 2025-05-12 17:07:53 -04:00
release.rs clippy_dev: remove the need for markers when bumping the version 2025-05-17 04:27:39 -04:00
rename_lint.rs Add expect_action helper to clippy_dev 2025-05-21 15:09:35 -04:00
serve.rs Merge commit 'f712eb5cdc' into clippy-subtree-update 2024-11-07 22:37:01 +01:00
sync.rs Bump nightly version -> 2025-05-21 2025-05-21 14:50:25 +02:00
update_lints.rs Add expect_action helper to clippy_dev 2025-05-21 15:09:35 -04:00
utils.rs Add expect_action helper to clippy_dev 2025-05-21 15:09:35 -04:00