Skip to content

Commit 7fa76f3

Browse files
nnethercoteLegNeato
authored andcommitted
Add a comment about rustfmt on CI.
This was non-obvious to me, and took a minute to work out.
1 parent e13bca6 commit 7fa76f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci_linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ jobs:
293293
run: cargo --version
294294
- name: Rustfmt compiletests
295295
shell: bash
296+
# Uses rustfmt directly, rather than via `cargo fmt`, because the compiletests .rs files
297+
# are not within a package.
296298
run: shopt -s globstar && rustfmt --check tests/compiletests/ui/**/*.rs
297299
- name: Compiletest
298300
run: cargo run -p compiletests --release --no-default-features -- --target-arch compute_61,compute_75,compute_90

0 commit comments

Comments
 (0)