diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-29 13:18:37 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-29 16:24:50 +1000 |
| commit | 3d5d6d222084db76ac152b6c813a3bc177bec8ce (patch) | |
| tree | bdfbdfd626f7427fa13fbfa2426156b4962511ce /tests/coverage/branch/lazy-boolean.rs | |
| parent | e98740aa0daa288b44925864a487fab7d4c536d5 (diff) | |
| download | rust-3d5d6d222084db76ac152b6c813a3bc177bec8ce.tar.gz rust-3d5d6d222084db76ac152b6c813a3bc177bec8ce.zip | |
Adjust `x fmt` printed output.
Currently, `x fmt` can print two lists of files. - The untracked files that are skipped. Always done if within a git repo. - The modified files that are formatted. But if you run with `--all` (or with `GITHUB_ACTIONS=true`) it doesn't print anything about which files are formatted. This commit increases consistency. - The formatted/checked files are now always printed. And it makes it clear why a file was formatted, e.g. with "modified". - It uses the same code for both untracked files and formatted/checked files. This means that now if there are a lot of untracked files just the number will be printed, which is like the old behaviour for modified files. Example output: ``` fmt: skipped 31 untracked files fmt: formatted modified file compiler/rustc_mir_transform/src/instsimplify.rs fmt: formatted modified file compiler/rustc_mir_transform/src/validate.rs fmt: formatted modified file library/core/src/ptr/metadata.rs fmt: formatted modified file src/bootstrap/src/core/build_steps/format.rs ``` or (with `--all`): ``` fmt: checked 3148 files ```
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.rs')
0 files changed, 0 insertions, 0 deletions
