Skip to content

chore: Update Rust toolchain to 1.98.1 - #25295

Merged
neilconway merged 1 commit into
apache:mainfrom
neilconway:neilc/chore-rust-1.98
Sep 14, 2026
Merged

chore: Update Rust toolchain to 1.98.1#25295
neilconway merged 1 commit into
apache:mainfrom
neilconway:neilc/chore-rust-1.98

Conversation

@neilconway

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • N/A

Rationale for this change

Periodic update to latest stable Rust toolchain.

What changes are included in this PR?

  • Bump pinned toolchain
  • Bump depcheck sub-workspace toolchain
  • Update a few references in docs
  • Remove from_iter_instead_of_collect from workspace clippy allow list (lint was removed in 1.98)
  • Resolve new clippy warnings that appear with clippy 1.98

What is the testing strategy for this PR?

Compiles cleanly, all clippy / lint checks pass with no new warnings.

Are there any user-facing changes?

No.

Bump the pinned toolchain, and the depcheck sub-workspace toolchain, from
1.97.0 to 1.98.1, and resolve everything clippy 1.98 newly reports so that
`cargo clippy -- -D warnings` stays clean:

- chunks_exact_to_as_chunks: use `as_chunks` / `as_chunks_mut`. In the
  null-mask loops in `accumulate.rs` the remainder now comes from the
  returned tuple, and callers that walk fixed-size pairs destructure them
  directly instead of indexing.
- with_capacity_zero, useless_format, needless_late_init: apply the
  suggested simplifications.
- unused_imports: drop the glob imports in the `hash_utils` test module
  that duplicate what `use super::*` already provides.
- result_large_err: clippy 1.98 reports this for `async fn`s returning
  `object_store::Result`, whose error type exceeds the workspace threshold.
  Mark those sites with `#[expect]`, since the error type is fixed by the
  object_store API.
- unused_async_trait_impl: add it to the existing `#[expect(unused_async)]`
  on the intentionally async methods in the remote_catalog example.

Also remove the `from_iter_instead_of_collect` entry from the workspace
clippy allow list, since clippy 1.98 removed that lint.
@github-actions github-actions Bot added documentation Improvements or additions to documentation sql SQL Planner development-process Related to development process of DataFusion logical-expr Logical plan and expressions core Core DataFusion crate common Related to common crate functions Changes to functions implementation datasource Changes to the datasource crate physical-plan Changes to the physical-plan crate labels Sep 14, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.97872% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.91%. Comparing base (7b00b63) to head (ee41fdb).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
datafusion/sql/src/unparser/expr.rs 68.75% 1 Missing and 4 partials ⚠️
datafusion/expr/src/logical_plan/display.rs 0.00% 2 Missing ⚠️
...sical-plan/src/repartition/distributor_channels.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25295      +/-   ##
==========================================
- Coverage   81.91%   81.91%   -0.01%     
==========================================
  Files        1134     1134              
  Lines      425637   425636       -1     
  Branches   425637   425636       -1     
==========================================
- Hits       348654   348646       -8     
- Misses      56302    56309       +7     
  Partials    20681    20681              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@neilconway
neilconway added this pull request to the merge queue Sep 14, 2026
Merged via the queue into apache:main with commit 6bbd3f4 Sep 14, 2026
43 checks passed
@neilconway
neilconway deleted the neilc/chore-rust-1.98 branch September 14, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to common crate core Core DataFusion crate datasource Changes to the datasource crate development-process Related to development process of DataFusion documentation Improvements or additions to documentation functions Changes to functions implementation logical-expr Logical plan and expressions physical-plan Changes to the physical-plan crate sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants