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

lib: allow renamed_and_removed_lints for now #444

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

cpu
Copy link
Member

@cpu cpu commented Jul 19, 2024

Nightly clippy renamed thread_local_initializer_can_be_made_const to missing_const_for_thread_local. E.g see this clippy failure.

We can't use the new name on stable; we must keep using the old name to suppress the finding. If we don't allow renamed_and_removed_lints, we can't use the old name on nightly; it generates a warning about the new name... Using both names won't work for the same reason, and our setting to allow unknown lints won't help.

There's no convenient way to change which name we use based on whether we're building with nightly or not so, for now, let's just allow renamed_and_removed_lints :-( The only alternative I could think of is to ignore the failing nightly clippy task (since it's optional), but that seems crummy too. Alternate ideas welcome!

Nightly clippy renamed `thread_local_initializer_can_be_made_const` to
`missing_const_for_thread_local`.

We can't use the new name on stable; we must keep using the old name to
suppress the finding. If we don't allow `renamed_and_removed_lints`, we
can't use the old name on nightly; it generates a warning about the new
name... Using _both_ names won't work for the same reason, and our
setting to allow _unknown_ lints won't help.

There's no convenient way to change which name we use based on whether
we're building with nightly or not so, for now, let's just allow
`renamed_and_removed_lints` :-(
@cpu cpu self-assigned this Jul 19, 2024
@cpu cpu requested a review from ctz July 29, 2024 13:17
@cpu cpu merged commit c190a9a into rustls:main Jul 29, 2024
25 checks passed
@cpu cpu deleted the cpu-nightly-fix branch July 29, 2024 13:32
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