Skip to content

chore(rust): bump toolchain to 1.98 - #1824

Merged
mergify[bot] merged 1 commit into
mainfrom
devs/jd/jd/rust-198/bump-toolchain-1-98--8a70ab99
Sep 11, 2026
Merged

chore(rust): bump toolchain to 1.98#1824
mergify[bot] merged 1 commit into
mainfrom
devs/jd/jd/rust-198/bump-toolchain-1-98--8a70ab99

Conversation

@jd

@jd jd commented Sep 10, 2026

Copy link
Copy Markdown
Member

renovate opened #1790 for this bump on 2026-08-27 and it has been red
for two weeks: 1.98's clippy adds manual_is_variant_and, which fires
once, on a Result treated as an Option:

env::var("JENKINS_URL").ok().is_some_and(|v| !v.is_empty())
-> env::var("JENKINS_URL").is_ok_and(|v| !v.is_empty())

rust-toolchain.toml's own comment states the policy this follows: a
bump PR that trips new lints fails CI and must fix them in the same
PR, so the fix travels with the bump rather than in a follow-up.

Verified locally against 1.98.1 with the exact CI steps (cargo fmt
--check, clippy --workspace --all-targets --all-features --locked -D
warnings, test --workspace --all-features --locked, build --release
--locked): all pass, and clippy surfaces no other new lint beyond the
one above.

Supersedes #1790.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

renovate opened #1790 for this bump on 2026-08-27 and it has been red
for two weeks: 1.98's clippy adds `manual_is_variant_and`, which fires
once, on a `Result` treated as an `Option`:

    env::var("JENKINS_URL").ok().is_some_and(|v| !v.is_empty())
    -> env::var("JENKINS_URL").is_ok_and(|v| !v.is_empty())

rust-toolchain.toml's own comment states the policy this follows: a
bump PR that trips new lints fails CI and must fix them in the same
PR, so the fix travels with the bump rather than in a follow-up.

Verified locally against 1.98.1 with the exact CI steps (cargo fmt
--check, clippy --workspace --all-targets --all-features --locked -D
warnings, test --workspace --all-features --locked, build --release
--locked): all pass, and clippy surfaces no other new lint beyond the
one above.

Supersedes #1790.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Change-Id: I8a70ab992f8ef05bf6662e83b111757f5f856ad8
Copilot AI lite review requested due to automatic review settings September 10, 2026 19:46
@mergify
mergify Bot deployed to Mergify Merge Protections September 10, 2026 19:46 Active
@jd
jd deployed to func-tests-live September 10, 2026 19:46 — with GitHub Actions Active
@mergify

mergify Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 6 merge protections satisfied — ready to merge.

Show 6 satisfied protections

🟢 🤖 Continuous Integration

  • all of:
    • check-success=ci-gate

🟢 👀 Review Requirements

  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:

🟢 🔎 Reviews

  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The toolchain bump is accompanied by the required Clippy-fix and the change is a behavior-preserving refactor.

Pull request overview

This PR updates the repository’s pinned Rust toolchain to 1.98 and includes the small, in-repo code change needed to satisfy a newly introduced Clippy lint under that toolchain.

Changes:

  • Bump rust-toolchain.toml from Rust 1.97 to 1.98.
  • Update CI environment detection to use Result::is_ok_and (addressing Clippy’s manual_is_variant_and lint).
File summaries
File Description
rust-toolchain.toml Pins the workspace toolchain to Rust 1.98 for consistent CI/local builds.
crates/mergify-ci/src/detector.rs Adjusts Jenkins env-var detection to satisfy new Clippy lint under Rust 1.98.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mergify
mergify Bot requested a review from a team September 10, 2026 19:53
@jd
jd marked this pull request as ready for review September 11, 2026 06:59
@mergify
mergify Bot requested a review from a team September 11, 2026 07:15
@mergify

mergify Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 8 minutes 50 seconds in the queue, including 7 minutes 55 seconds running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Sep 11, 2026
@mergify
mergify Bot merged commit 94d6a9b into main Sep 11, 2026
23 checks passed
@mergify
mergify Bot deleted the devs/jd/jd/rust-198/bump-toolchain-1-98--8a70ab99 branch September 11, 2026 12:49
@mergify mergify Bot removed the queued label Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants