Skip to content

Conversation

AndreasKoestler
Copy link
Contributor

@AndreasKoestler AndreasKoestler commented Sep 19, 2025

Motivation

As of rust version 1.89.0 the following warning is issued
#[automatically_derived] only has an effect on trait implementation blocks

To reproduce run
RUSTFLAGS="-Dwarnings" cargo clippy --all-targets --all-features

Solution

Allow for unused_attributes in the generated bindings.

Closes #11712

PR Checklist

  • [N/A] Added Tests
  • [N/A] Added Documentation
  • [N/A] Breaking changes

@AndreasKoestler AndreasKoestler changed the title Added unused_attributes to allow list for generated bindings fix(forge): Add unused_attributes to allow list for generated bindings Sep 19, 2025
@onbjerg onbjerg self-assigned this Sep 19, 2025
Copy link
Contributor

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requires a run of cargo +nightly fmt --all

@onbjerg onbjerg enabled auto-merge (squash) September 19, 2025 14:32
@onbjerg onbjerg merged commit 3f0e871 into foundry-rs:master Sep 19, 2025
45 of 48 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Sep 19, 2025
@grandizzy grandizzy moved this from Done to Completed in Foundry Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

Generated bindings issue "#[automatically_derived] only has an effect on trait implementation blocks" warning on current stable rust (rustc 1.90.0)
2 participants