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

Remove Input associated type #2854

Merged
merged 81 commits into from
Jan 17, 2025
Merged

Remove Input associated type #2854

merged 81 commits into from
Jan 17, 2025

Conversation

rmalmain
Copy link
Member

until then, we were using a mix of <S as HasCorpus>::Input: ... and I: ..., which were referring to the same thing in practice.
this patch unify usage of input using a single generic I.

implications:

  • no more type Input: Input in traits definitions that were using them, only use I generic instead.
  • it removed a lot of duplicate bounds, and removes the dependency on Corpus in many places.

next step is to do the same for ShMemProvider associated type, and finally remove generic bounds from struct definitions.

@rmalmain rmalmain merged commit f8ad61e into main Jan 17, 2025
106 checks passed
@rmalmain rmalmain deleted the use_generic_input branch January 17, 2025 13:53
mzfr pushed a commit to mzfr/LibAFL that referenced this pull request Jan 19, 2025
* Completely remove Input as an associated type in multiple traits

* Unify usage of Input as generic instead 

* Remove many unused bounds, in particular HasCorpus

* fix multiple generic ordering

* update and fix CONTRIBUTING.md

* update MIGRATION

* use the same generic input type for new / with_max_iterations to make typing easier in most cases.

* Restore libafl_libfuzzer test in CI
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