Skip to content

Change all #[allow()] to #[expect()] #10129

@DaniPopes

Description

@DaniPopes

expect(lint) was stabilized in 1.81.

We should use this instead of allow() so a warning is produced when the lint no longer triggers, so we can remove the entire attribute altogether.

Replace #[allow()] to #[expect()], and remove the ones that the compiler complains about.

Note that not all can be replaced, as they might be there to allow a lint that only happens on a certain configuration. In this case, they are OK.

Metadata

Metadata

Assignees

Labels

T-featureType: featurefirst issueA good way to start contributing

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions