Skip to content

Commit 8ec5901

Browse files
committed
Fix tests/run-make handling.
I tried some `rustfmt.toml` changes and these files were changed under `tests/run-make`: tests/run-make/CURRENT_RUSTC_VERSION/rmake.rs tests/run-make/compiler-builtins/rmake.rs tests/run-make/cross-lang-lto-riscv-abi/rmake.rs tests/run-make/issue-26006/in/libc/lib.rs tests/run-make/issue-26006/in/time/lib.rs tests/run-make/print-cfg/rmake.rs tests/run-make/print-native-static-libs/rmake.rs tests/run-make/print-to-output/rmake.rs tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs tests/run-make/rustdoc-scrape-examples-test/examples/ex.rs tests/run-make/thumb-none-qemu/example/src/main.rs tests/run-make/wasm-exceptions-nostd/src/arena_alloc.rs tests/run-make/wasm-exceptions-nostd/src/lib.rs tests/run-make/wasm-exceptions-nostd/src/panicking.rs tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/build.rs Only the `rmake.rs` files should have been changed. This commit adjust the rules to initially exclude all files under `tests/run-make/`, not just `tests/run-make/*/*.rs`. Because there are some `.rs` files at deeper depths. After that, the changes I get are to only the desired files: tests/run-make/CURRENT_RUSTC_VERSION/rmake.rs tests/run-make/compiler-builtins/rmake.rs tests/run-make/cross-lang-lto-riscv-abi/rmake.rs tests/run-make/print-cfg/rmake.rs tests/run-make/print-native-static-libs/rmake.rs tests/run-make/print-to-output/rmake.rs
1 parent 39e02f1 commit 8ec5901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ignore = [
1818
# but we still want to format rmake.rs files in tests/run-make/ so we need to do this
1919
# dance to avoid the parent directory from being excluded
2020
"!/tests/run-make/",
21-
"/tests/run-make/*/*.rs",
21+
"/tests/run-make/*",
2222
"!/tests/run-make/*/rmake.rs",
2323

2424
# do not format submodules

0 commit comments

Comments
 (0)