-
Notifications
You must be signed in to change notification settings - Fork 206
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: Impls with generics #798
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
kevaundray
reviewed
Feb 10, 2023
vezenovm
reviewed
Feb 10, 2023
jfecher
force-pushed
the
jf/impl-generics
branch
from
February 10, 2023 19:16
2831241
to
d42cb7d
Compare
kevaundray
approved these changes
Feb 10, 2023
vezenovm
approved these changes
Feb 10, 2023
auto-merge was automatically disabled
February 10, 2023 20:38
Merge queue setting changed
TomAFrench
added a commit
that referenced
this pull request
Feb 14, 2023
* master: (28 commits) chore(ci): Add release token to enable runs against release PR (#840) feat(ssa): array sort (#754) chore: update readme (#811) chore: fix clippy (#825) chore: remove stale comment on HirFunction.unchecked_from_expr (#827) chore: Getter naming refactor (#803) chore: updated "HirFunction::unsafe_from_expr" to "HirFunction::unchecked_from_expr" (#823) chore: Forbid unsafe code (#824) chore: Follow rust naming convention (#801) feat(ci): Add concurrency group for rust workflow (#806) chore(ssa): rename impl method to follow Rust guideline (#782) fix(nargo): `nargo test` now only runs test functions defined in the current module (#805) chore(nargo): Remove outdated error message when Prover/Verifier.toml is missing (#807) chore(ssa): rename codegen to ssa_gen + reorg of `Value` struct (#797) chore(nargo): abstract paths from nargo's working directory (#761) chore(ci): Rename workflows (#804) feat: Impls with generics (#798) chore(ssa): Add doc comments on `Opcode` struct (#778) fix: operators issuing type errors when used with matching integer types arising from generic code (#789) chore(nargo)!: bump MSRV to 1.66.0 (#799) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue(s)
Resolves #638
Description
Implements generics on implementations where the
impl
keyword can introduce type variables that are visible to each method within.Summary of changes
This PR involved a larger amount of changes than expected. The bulk of changes are in name resolution and include changing impls to carry around a generics field, changing type lookups to carry around generics if necessary and instantiate automatically otherwise, a few added error types mostly related to applying generic to a non-struct type or attempting to apply generics to
Self
, among other changes.Dependency additions / changes
None
Test additions / changes
Added a short test of impl generics to the
generics
test case.Checklist
cargo fmt
with default settings.