Skip to content

fix(ci): lint on the MSRV toolchain like the release gate - #154

Merged
rennf93 merged 1 commit into
masterfrom
fix/msrv-clippy-doc
Oct 15, 2026
Merged

rennf93 merged 1 commit into
masterfrom
fix/msrv-clippy-doc

Conversation

@rennf93

@rennf93 rennf93 commented Oct 15, 2026

Copy link
Copy Markdown
Member

Closes #153

The v4.4.0 Release Gate failed because release.yml runs clippy with -D warnings on Rust 1.92.0 and PR CI never did. This fixes the eight findings (one long first doc paragraph in patterns/mod.rs, and the significant_drop_tightening guards in four dynamic_rules.rs overlay tests, using the allow the crate already uses for test lock guards), and adds the release gate's exact clippy command to the MSRV job so a PR can no longer pass and then fail at the tag.

Local: cargo +1.92.0 clippy --workspace --all-targets --exclude guard-core-python -- -D warnings finishes clean, cargo fmt --check and stable clippy exit 0, actionlint passes on ci.yml.

clippy 1.92 rejected a long first doc paragraph and six test lock guards that stable clippy accepts, so the v4.4.0 tag failed its release gate. The doc comment gets a short summary line, the four overlay tests take the crate's usual significant_drop_tightening allow, and the MSRV CI job now runs the release gate's clippy command.
@github-actions github-actions Bot added ci GitHub Actions and pre-commit area: engine Touches crates/guard-core-engine/ (compiler, preprocessor, semantic, detect, patterns) area: facade Touches crates/guard-core-rs/ (published facade crate) labels Oct 15, 2026
@rennf93
rennf93 merged commit 601afb2 into master Oct 15, 2026
20 checks passed
@rennf93
rennf93 deleted the fix/msrv-clippy-doc branch October 15, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: engine Touches crates/guard-core-engine/ (compiler, preprocessor, semantic, detect, patterns) area: facade Touches crates/guard-core-rs/ (published facade crate) ci GitHub Actions and pre-commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The v4.4.0 release gate failed clippy on the MSRV toolchain

1 participant