chore: enforce clippy::allow_attributes for physical crates #19185
+18
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
clippy::allow_attributes#18881.Rationale for this change
Please refer to #18881.
What changes are included in this PR?
Added
#![deny(clippy::allow_attributes)]to the following crates:datafusion-physical-expr-adapter.datafusion-physical-expr-common.datafusion-physical-optimizer.Removed
#[allow(deprecated)]fromdatafusion/datafusion/physical-optimizer/src/filter_pushdown.rs
Lines 432 to 443 in cb2f3d2
#[deprecated]items, thus when#[expect(deprecated)]is used instead of#[allow(deprecated)]it results inerror: this lint expectation is unfulfilled.Kept
#[allow(clippy::only_used_in_recursion)]indatafusion/datafusion/physical-optimizer/src/aggregate_statistics.rs
Lines 43 to 98 in 6746007
#[expect(clippy::only_used_in_recursion)]resulted inerror: this lint expectation is unfulfilledwhen runningsh ci/scripts/rust_clippy.shbut was successful when runningcargo clippy -p datafusion-physical-optimizer -- -D warning. Ref: New lintclippy::allow_attributes#18881 (comment).For now, easiest solution is to locally expect
#[expect(clippy::allow_attributes)].Are these changes tested?
Successfully ran
sh ci/scripts/rust_clippy.sh.Are there any user-facing changes?
No.