Skip to content

build(lints): allow clippy::assert_is_empty from Rust 1.99 - #10

Merged
hyperb1iss merged 1 commit into
mainfrom
nova/clippy-assert-is-empty
Nov 3, 2026
Merged

hyperb1iss merged 1 commit into
mainfrom
nova/clippy-assert-is-empty

Conversation

@hyperb1iss

Copy link
Copy Markdown
Owner

CI on main has been red since Rust 1.99.1 (2026-10-13). That release added clippy::assert_is_empty to the pedantic group, and this crate denies pedantic, so ten existing assert!(v.is_empty()) checks in tests now fail ci / check with no code change. The last green main run was on 2026-09-07; #9 hit the same failure on a YAML-only diff.

Clippy's suggested fix turns each check into assert_eq!(v, [] as [Type; 0]), which reads worse than what it replaces and needs PartialEq on types that don't otherwise want it. So this adds the lint to the existing block of pragmatic style allowances in Cargo.toml, next to must_use_candidate.

🧪 Validation

ci / check on this PR is the proof: it runs the same stable 1.99.1 clippy with -D warnings that failed #9.

Rust 1.99.1 added assert_is_empty to the pedantic group, which this
crate denies, so CI broke on ten existing `assert!(v.is_empty())`
checks without any code change. Clippy's suggested fix rewrites them
as `assert_eq!(v, [] as [Type; 0])`, which is harder to read, so the
lint joins the other pragmatic style allowances.

Co-Authored-By: Nova (Claude Opus 5.5) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

Or wait 51 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 31aa3970-30a5-4154-b1d9-14246bcb077e
Commits

Reviewing files that changed from the base of the PR and between 1167549 and 8162185.

Files selected for processing: 1
  • Cargo.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@hyperb1iss
hyperb1iss merged commit 7b7d029 into main Nov 3, 2026
14 checks passed
@hyperb1iss
hyperb1iss deleted the nova/clippy-assert-is-empty branch November 3, 2026 20:11
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.

1 participant