Skip to content

Conversation

cpu
Copy link
Member

@cpu cpu commented May 3, 2024

This trait is only used when the crypto or pem features are enabled, producing a warning with Rust 1.80 clippy (as seen in CI failures) when building with --no-default-features. This commit config-gates its definition to avoid that warning.

This type is only used when the `crypto` or `pem` features are enabled,
producing a warning with Rust 1.80 clippy when building with
`--no-default-features`. This commit config-gates its definition to
avoid that warning.
@cpu cpu self-assigned this May 3, 2024
@cpu
Copy link
Member Author

cpu commented May 6, 2024

Since this is a small non-functional change I'm going to merge with one review to fix CI. Edit: ended up needing another commit.

@cpu cpu added this pull request to the merge queue May 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 6, 2024
@cpu
Copy link
Member Author

cpu commented May 6, 2024

github-merge-queue bot removed this pull request from the merge queue due to failed status checks

Nightly updated and there's some new findings of the form "error: unexpected cfg condition name: crypto". I'll push a fix commit into this branch.

In a few places we were using `#[cfg(crypto)]` instead of `#[cfg(feature
= "crypto")]`. Latest rust nightly is correctly flagging this as
unexpected.

This commit fixes those feature gates, and in the process starts running
some unit tests that were effectively inert before now. They in turn
require some small API tweaks to catch up with the state of `main`.
@cpu cpu requested a review from djc May 6, 2024 13:23
@cpu
Copy link
Member Author

cpu commented May 6, 2024

I'll push a fix commit into this branch.

Done. The reported errors from nightly helped uncovered we had some inert unit tests that also needed fixing. Nice 👍

@cpu cpu requested a review from est31 May 6, 2024 14:15
@cpu
Copy link
Member Author

cpu commented May 7, 2024

This still feels non-functional/small enough to merge without blocking for another review. Happy to re-calibrate for next time if I'm jumping the gun.

@cpu cpu added this pull request to the merge queue May 7, 2024
Merged via the queue into rustls:main with commit ff6fcc5 May 7, 2024
@cpu cpu deleted the cpu-1.80-clippy-fixes branch May 7, 2024 13:14
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.

2 participants