This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new e3b694283 ci(rust): suppress unused features error for unstable 
`non_exhaustive_omitted_patterns_lint` only used in `arrow_ffi` (#4055)
e3b694283 is described below

commit e3b69428336bcab8b0fb25ac037756a1ba072f57
Author: eitsupi <[email protected]>
AuthorDate: Sun Mar 8 19:59:29 2026 +0900

    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.
---
 .github/workflows/rust.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index e40cc3035..84f7d8187 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -172,7 +172,13 @@ jobs:
         working-directory: rust
         run: |
           rustup toolchain install nightly --component clippy
-          cargo +nightly clippy --workspace --all-targets --all-features 
--locked -- -Dwarnings 
-Zcrate-attr='feature(non_exhaustive_omitted_patterns_lint)'
+          # -Zcrate-attr enables the unstable non_exhaustive_omitted_patterns 
lint
+          # (https://github.com/apache/arrow-adbc/pull/3245).
+          # It applies to all workspace packages, so we also allow 
unused_features for crates that
+          # don't use the lint.
+          cargo +nightly clippy --workspace --all-targets --all-features 
--locked -- -Dwarnings \
+            -Zcrate-attr='feature(non_exhaustive_omitted_patterns_lint)' \
+            -Zcrate-attr='allow(unused_features)'
       - name: Test (Default Features)
         working-directory: rust
         # TODO: enable snowflake tests on windows

Reply via email to