Skip to content

Replace #[allow] with #[expect] where needed #40383

@arihant2math

Description

@arihant2math

To prevent dangling #[allow(unsafe_code)]s or #[allow(unused)] from existing, it might be good to replace these with #[expect(...)]. This will throw a warning if the lint does not apply. This is most applicable to unused, dead_code, and unsafe_code, but other lints also should be migrated to expect.

Metadata

Metadata

Assignees

Labels

C-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-cleanupNo impact; the issue is one of maintainability or tidiness.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions