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

Simplify the structure of field/thunk dependencies #960

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

yannham
Copy link
Member

@yannham yannham commented Dec 1, 2022

Follow-up of #940 (comment).

The dependencies of a recursive fields were represented with several different types: Option<HashSet<Ident>>, ThunkDeps and FieldDeps, corresponding to different stages of the pipeline. ThunkDeps also had redundant states (ThunkDeps::Empty and ThunkDeps::Know(deps) if deps.is_empty()).

This commit simplifies the situation by committing to one type, and removing multiple states representing the same thing.

The dependencies of a recursive fields were represented with several
different types: `Option<HashSet<Ident>>`, `ThunkDeps` and `FieldDeps`,
corresponding to different stages of the pipeline. ThunkDeps also had
redundant states (`ThunkDeps::Empty` and `ThunkDeps::Know(deps)` if
`deps.is_empty()`).

This commit simplifies the situation by committing to one type, and
removing multiple states representing the same thing.
@github-actions github-actions bot temporarily deployed to pull request December 1, 2022 10:52 Inactive
@yannham yannham merged commit aa43cb6 into master Dec 1, 2022
@yannham yannham deleted the refactor/thunk-deps branch December 1, 2022 12:38
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.

4 participants