Skip to content

Rust: Don't preserve old nightly toolchains - #22607

Open
paldepind wants to merge 1 commit into
mainfrom
rust/old-nightly-toolchains
Open

paldepind wants to merge 1 commit into
mainfrom
rust/old-nightly-toolchains

Conversation

@paldepind

@paldepind paldepind commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Currently when a project specifies a nightly toolchain we always use the nightly toolchain as-is.

This PR adds a minimum date below which we cap the nightly toolchain. So, loosely speaking, nightly toolchains become max(specified-nightly, minimum-nightly).

This improves extraction for projects that use an old nightly toolchain. I don't think this matters much in practice, but it should result in less noise in DCA and QA. Hopefully I'll also make #22559 a true noop.

DCA looks great and shows that we extract way more from Databend and Rendiation.

@github-actions github-actions Bot added the Rust Pull requests that update Rust code label Sep 17, 2026
@paldepind
paldepind marked this pull request as ready for review September 18, 2026 11:02
@paldepind
paldepind requested review from a team as code owners September 18, 2026 11:02
Copilot AI balanced review requested due to automatic review settings September 18, 2026 11:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused implementation is consistent with the stated goal and covers relevant boundary cases.

Review effort: Balanced
Findings: None

What changed in this PR

Adds a compatibility floor for outdated Rust nightly toolchains.

Changes:

  • Caps dated nightlies older than 2026-07-15.
  • Preserves rolling, current, and unrecognized nightly toolchains.
  • Adds unit tests for selection behavior and test-toolchain synchronization.
File Description
rust/​extractor/​src/​toolchain.rs Implements and tests minimum-nightly selection.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants