Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benches: ignore clippy::incompatible_msrv #251

Merged
merged 1 commit into from
May 3, 2024

Conversation

cpu
Copy link
Member

@cpu cpu commented May 3, 2024

The Rust 1.80 release broke the clippy task in CI with clippy findings of the form:

warning: current MSRV (Minimum Supported Rust Version) is `1.63.0` but this item is stable since `1.66.0`
   --> benches/benchmark.rs:153:15
    |
153 |     c.iter(|| black_box(assert!(matches!(crl.find_serial(FAKE_SERIAL), Ok(None)))));
    |               ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
    = note: `#[warn(clippy::incompatible_msrv)]` on by default

This commit ignores these findings under benches/benchmark.rs. We don't offer an MSRV for dev-only benchmarks

Fixes clippy findings of the form:

```
warning: current MSRV (Minimum Supported Rust Version) is `1.63.0` but this item is stable since `1.66.0`
   --> benches/benchmark.rs:153:15
    |
153 |     c.iter(|| black_box(assert!(matches!(crl.find_serial(FAKE_SERIAL), Ok(None)))));
    |               ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
    = note: `#[warn(clippy::incompatible_msrv)]` on by default
```

We don't offer an MSRV for dev-only benchmarks.
@cpu cpu self-assigned this May 3, 2024
Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.21%. Comparing base (d9375e8) to head (a855a49).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #251   +/-   ##
=======================================
  Coverage   97.21%   97.21%           
=======================================
  Files          19       19           
  Lines        4100     4100           
=======================================
  Hits         3986     3986           
  Misses        114      114           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ctz
Copy link
Member

ctz commented May 3, 2024

That feels like a false positive, even.

@ctz
Copy link
Member

ctz commented May 3, 2024

See also: rust-lang/rust-clippy#12257

@djc djc added this pull request to the merge queue May 3, 2024
Merged via the queue into rustls:main with commit fbea270 May 3, 2024
30 checks passed
@cpu cpu deleted the cpu-clippy-msrv-fix branch May 3, 2024 22:26
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.

3 participants