Skip to content

Enable rust-2024-compatibility lint rules #248

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jtbandes
Copy link
Member

@jtbandes jtbandes commented Feb 26, 2025

Changelog

None

Docs

None

Description

Enables lint rules to ease migration to the 2024 edition if/when we ever choose to do so.

I also ran cargo fix --edition which automatically rewrote some code to ensure its semantics don't change with the new edition (due to this if let temporary scope change).

The only remaining errors were from tail_expr_drop_order (explainer). I suspect a lot of them won't actually cause problems for us, but cargo fix --edition can't rewrite to avoid them, and I wasn't able to disable the rule on a case-by-case basis using #[allow()], so I just disabled it globally.

@jtbandes jtbandes marked this pull request as ready for review February 27, 2025 23:41
@jtbandes jtbandes marked this pull request as draft March 1, 2025 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant