Skip to content

Expand #[expect] attributes into #[allow]#4409

Merged
guybedford merged 1 commit intowasm-bindgen:mainfrom
samueltardieu:push-wxyyqxywtxut
Feb 7, 2026
Merged

Expand #[expect] attributes into #[allow]#4409
guybedford merged 1 commit intowasm-bindgen:mainfrom
samueltardieu:push-wxyyqxywtxut

Conversation

@samueltardieu
Copy link
Copy Markdown
Contributor

An #[expect] outer attribute must not be kept in the #[automatically_derived] code, as the expanded code will probably not meet the expectations. Transforming it into the equivalent #[allow] attribute is the safest way to ensure that expected attributes will not trigger a warning.

Noticed through a bug report entered at the Clippy repository at rust-lang/rust-clippy#14008.

@samueltardieu
Copy link
Copy Markdown
Contributor Author

Is there anything missing on this PR to make it noticed?

@samueltardieu
Copy link
Copy Markdown
Contributor Author

Ping?

@samueltardieu
Copy link
Copy Markdown
Contributor Author

Anyone alive here?

An `#[expect]` outer attribute must not be kept in the
`#[automatically_derived]` code, as the expanded code will probably not
meet the expectations. Transforming it into the equivalent `#[allow]`
attribute is the safest way to ensure that expected attributes will not
trigger a warning.

Noticed through a bug report entered at the Clippy repository at
<rust-lang/rust-clippy#14008>.
@guybedford guybedford enabled auto-merge (squash) February 7, 2026 05:52
@guybedford guybedford merged commit 8006aa0 into wasm-bindgen:main Feb 7, 2026
58 checks passed
@guybedford guybedford mentioned this pull request Feb 20, 2026
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