Skip to content

Commit e3b6942

Browse files
authored
ci(rust): suppress unused features error for unstable non_exhaustive_omitted_patterns_lint only used in arrow_ffi (#4055)
It seems that the latest nightly toolchain has tightened detection of unused features. Currently, unstable `non_exhaustive_omitted_patterns` is only used in `adbc_ffi` (#3245), so it seems necessary `allow(unused_features)` for the other workspace members. This change fixes the Rust CI failure seen in recent PRs.
1 parent 28abfdf commit e3b6942

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@ jobs:
172172
working-directory: rust
173173
run: |
174174
rustup toolchain install nightly --component clippy
175-
cargo +nightly clippy --workspace --all-targets --all-features --locked -- -Dwarnings -Zcrate-attr='feature(non_exhaustive_omitted_patterns_lint)'
175+
# -Zcrate-attr enables the unstable non_exhaustive_omitted_patterns lint
176+
# (https://github.com/apache/arrow-adbc/pull/3245).
177+
# It applies to all workspace packages, so we also allow unused_features for crates that
178+
# don't use the lint.
179+
cargo +nightly clippy --workspace --all-targets --all-features --locked -- -Dwarnings \
180+
-Zcrate-attr='feature(non_exhaustive_omitted_patterns_lint)' \
181+
-Zcrate-attr='allow(unused_features)'
176182
- name: Test (Default Features)
177183
working-directory: rust
178184
# TODO: enable snowflake tests on windows

0 commit comments

Comments
 (0)