Skip to content

fix(ci): remove the nightly_toolchain feature gate for assert_matches#612

Merged
wmmc88 merged 7 commits intomicrosoft:mainfrom
Alan632:ci_fix-assert_matches-nightly
Feb 19, 2026
Merged

fix(ci): remove the nightly_toolchain feature gate for assert_matches#612
wmmc88 merged 7 commits intomicrosoft:mainfrom
Alan632:ci_fix-assert_matches-nightly

Conversation

@Alan632
Copy link
Copy Markdown
Contributor

@Alan632 Alan632 commented Feb 13, 2026

This PR removes the 'nightly_toolchain' feature gate for assert_matches which is now stable in nightly Rust (since 1.95.0-nightly).

image

@Alan632 Alan632 self-assigned this Feb 13, 2026
Copilot AI review requested due to automatic review settings February 13, 2026 21:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to remove the nightly_toolchain feature gate for assert_matches, which is now stable in Rust (stabilized in 1.82.0). The workspace's MSRV is 1.85.0, so this feature should be available without requiring a nightly toolchain. However, the PR is incomplete as it only removes the top-level feature gate but leaves all the conditional compilation guards in place.

Changes:

  • Removes the #![cfg_attr(nightly_toolchain, feature(assert_matches))] attribute from the top of crates/wdk-build/src/lib.rs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/wdk-build/src/lib.rs
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.41%. Comparing base (4895c2d) to head (e436836).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #612   +/-   ##
=======================================
  Coverage   77.41%   77.41%           
=======================================
  Files          24       24           
  Lines        4853     4853           
  Branches     4853     4853           
=======================================
  Hits         3757     3757           
  Misses        979      979           
  Partials      117      117           

☔ View full report in Codecov by Sentry.
📢 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.

@Alan632 Alan632 marked this pull request as ready for review February 14, 2026 02:00
@Alan632 Alan632 marked this pull request as draft February 14, 2026 02:03
Copilot AI review requested due to automatic review settings February 18, 2026 16:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/wdk-build/build.rs Outdated
@Alan632 Alan632 marked this pull request as ready for review February 18, 2026 18:02
Copilot AI review requested due to automatic review settings February 18, 2026 18:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/wdk-build/build.rs
Comment thread crates/wdk-build/build.rs
Comment thread crates/wdk-build/build.rs Outdated
Copilot AI review requested due to automatic review settings February 18, 2026 18:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/wdk-build/build.rs
Comment thread crates/wdk-build/src/lib.rs
Comment thread crates/wdk-build/build.rs
Comment thread CONTRIBUTING.md
@wmmc88 wmmc88 added this pull request to the merge queue Feb 18, 2026
Merged via the queue into microsoft:main with commit 5b3a4f3 Feb 19, 2026
283 of 284 checks passed
github-merge-queue Bot pushed a commit that referenced this pull request Apr 16, 2026
…bilization (#643)

Fixes `collapsable_if` lint failing in CI pipelines.

The `assert_matches` stabilization that was expected to ship with Rust
1.95.0 was [reverted from the 1.95
beta](rust-lang/rust#154999) due to an
[inconsistency in temporary scoping
behavior](rust-lang/rust#154406) between
`assert_matches!`/`assert_eq!` and their `debug_` variants.

We gated `assert_matches` usage based on the nightly compiler warning
that the feature was "stable since 1.95.0" (see #612). Since the
stabilization was reverted before the actual release, this gate now
fires on stable 1.95 and tries to use an unstable API, breaking CI
pipelines.

This bumps the gate to `1.96.0`. Beta 1.96 currently still has
`assert_matches` available, though that may change if the
destabilization propagates.

---------

Co-authored-by: leon-xd <leondu@microsoft.com>
svasista-ms pushed a commit to svasista-ms/windows-drivers-rs that referenced this pull request May 5, 2026
…bilization (microsoft#643)

Fixes `collapsable_if` lint failing in CI pipelines.

The `assert_matches` stabilization that was expected to ship with Rust
1.95.0 was [reverted from the 1.95
beta](rust-lang/rust#154999) due to an
[inconsistency in temporary scoping
behavior](rust-lang/rust#154406) between
`assert_matches!`/`assert_eq!` and their `debug_` variants.

We gated `assert_matches` usage based on the nightly compiler warning
that the feature was "stable since 1.95.0" (see microsoft#612). Since the
stabilization was reverted before the actual release, this gate now
fires on stable 1.95 and tries to use an unstable API, breaking CI
pipelines.

This bumps the gate to `1.96.0`. Beta 1.96 currently still has
`assert_matches` available, though that may change if the
destabilization propagates.

---------

Co-authored-by: leon-xd <leondu@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants