You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Hashim1999164 (via GitHub)" <gi...@apache.org> on 2026/07/29 13:52:35 UTC
[PR] Enable allow_attributes lint for arrow-string [arrow-rs]
Hashim1999164 opened a new pull request, #10482:
URL: https://github.com/apache/arrow-rs/pull/10482
## Which issue does this PR close?
Part of #10458.
## Rationale for this change
Enable `clippy::allow_attributes` for `arrow-string` so future lint suppressions use expectations and stale suppressions are detectable. The two existing `large_enum_variant` allows are no longer needed with the current toolchain, so this removes them instead of converting them into unfulfilled expectations.
## What changes are included in this PR?
- Deny `clippy::allow_attributes` in the `arrow-string` crate.
- Remove two obsolete `large_enum_variant` suppressions.
## Are there any user-facing changes?
No.
## How was this change tested?
- `cargo +stable fmt --all -- --check`
- `cargo clippy -p arrow-string --all-targets --all-features -- -D warnings`
- `cargo test -p arrow-string --all-features`
## AI assistance
AI assistance was used to identify the lint occurrences and draft the minimal edits. I reviewed the full diff and validated it with formatting, Clippy, and the crate's tests.
Made with [Cursor](https://cursor.com)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enable allow_attributes lint for arrow-string [arrow-rs]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on PR #10482:
URL: https://github.com/apache/arrow-rs/pull/10482#issuecomment-5154813249
thanks @Hashim1999164
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enable allow_attributes lint for arrow-string [arrow-rs]
Posted by "Hashim1999164 (via GitHub)" <gi...@apache.org>.
Hashim1999164 commented on PR #10482:
URL: https://github.com/apache/arrow-rs/pull/10482#issuecomment-5119540429
The x86_64 Linux Clippy failure is fixed by using target-specific `expect(clippy::large_enum_variant)` attributes. I verified Clippy both locally and with `--target x86_64-unknown-linux-gnu`, plus 182 unit tests and 10 doc tests. The new external-contributor workflow runs are now `action_required` and need maintainer approval to start.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enable allow_attributes lint for arrow-string [arrow-rs]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on code in PR #10482:
URL: https://github.com/apache/arrow-rs/pull/10482#discussion_r3687012321
##########
arrow-string/src/binary_predicate.rs:
##########
@@ -21,7 +21,10 @@ use memchr::memmem::Finder;
use std::iter::zip;
/// A binary based predicate
-#[allow(clippy::large_enum_variant)]
+#[cfg_attr(
+ all(target_os = "linux", target_arch = "x86_64"),
Review Comment:
i think its just x86_64; otherwise this will cause an issue on windows too if limited to only linux x86_64
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enable allow_attributes lint for arrow-string [arrow-rs]
Posted by "Hashim1999164 (via GitHub)" <gi...@apache.org>.
Hashim1999164 commented on PR #10482:
URL: https://github.com/apache/arrow-rs/pull/10482#issuecomment-5146450554
Updated the Clippy expectation to `target_arch = \"x86_64\"` so it also covers Windows x86_64, per your review note.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enable allow_attributes lint for arrow-string [arrow-rs]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey merged PR #10482:
URL: https://github.com/apache/arrow-rs/pull/10482
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org