Skip to content
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

fix: Do not warn on unused self in traits #6298

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

aakoshh
Copy link
Contributor

@aakoshh aakoshh commented Oct 17, 2024

Description

Problem*

Resolves #6297

Summary*

Sets warn_if_unused to false for the self parameter of a function if it's for a trait implementation.

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Copy link
Collaborator

@asterite asterite left a comment

Choose a reason for hiding this comment

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

Nice!

@asterite asterite added this pull request to the merge queue Oct 18, 2024
Merged via the queue into master with commit 4d524bf Oct 18, 2024
47 checks passed
@asterite asterite deleted the 6297-unused-self-trait-impl branch October 18, 2024 19:28
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Oct 19, 2024
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Oct 20, 2024
…s and struct fields (noir-lang/noir#6296)

chore(docs): refactoring guides and some other nits (noir-lang/noir#6175)
fix: Do not warn on unused self in traits (noir-lang/noir#6298)
fix: Reject invalid expression with in CLI parser (noir-lang/noir#6287)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Oct 20, 2024
… fields (noir-lang/noir#6296)

chore(docs): refactoring guides and some other nits (noir-lang/noir#6175)
fix: Do not warn on unused self in traits (noir-lang/noir#6298)
fix: Reject invalid expression with in CLI parser (noir-lang/noir#6287)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Oct 21, 2024
…s and struct fields (noir-lang/noir#6296)

chore(docs): refactoring guides and some other nits (noir-lang/noir#6175)
fix: Do not warn on unused self in traits (noir-lang/noir#6298)
fix: Reject invalid expression with in CLI parser (noir-lang/noir#6287)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Oct 21, 2024
… fields (noir-lang/noir#6296)

chore(docs): refactoring guides and some other nits (noir-lang/noir#6175)
fix: Do not warn on unused self in traits (noir-lang/noir#6298)
fix: Reject invalid expression with in CLI parser (noir-lang/noir#6287)
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.

Unused self in trait impl generates warning
2 participants