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

feat: Warn about private types leaking in public functions and struct fields #6296

Merged
merged 10 commits into from
Oct 19, 2024

Conversation

aakoshh
Copy link
Contributor

@aakoshh aakoshh commented Oct 17, 2024

Description

Problem*

Resolves #6248

Summary*

Issue warnings in more cases when a public item refers to private types:

  • public fields of a public struct fields using private types
  • a public function taking or returning private types

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.

@aakoshh aakoshh marked this pull request as ready for review October 17, 2024 20:47
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.

Looks great! I left a comment about a name.

@aakoshh aakoshh added this pull request to the merge queue Oct 19, 2024
Merged via the queue into master with commit 67ac0d6 Oct 19, 2024
47 checks passed
@aakoshh aakoshh deleted the 6248-warn-item-more-private branch October 19, 2024 19:33
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.

Warn on items more private than others
2 participants