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(driver): Remove Driver struct and refactor functions to take Context #1867

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

phated
Copy link
Contributor

@phated phated commented Jul 5, 2023

Description

Problem*

Towards #1838

Summary*

This removes the Driver struct that takes ownership over a Context. The struct is replaced by functions that take a Context and work with it, which allows for various parts of the system to own a Context they create, such as the LspState or nargo CLI.

Functions in the driver that were related to retrieving information about the program were moved onto the Context.

Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

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

kobyhallx
kobyhallx previously approved these changes Jul 5, 2023
Copy link
Contributor

@kobyhallx kobyhallx left a comment

Choose a reason for hiding this comment

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

LGTM

@TomAFrench TomAFrench changed the title feat(driver): Remove Driver struct and refactor functions to take context feat(driver): Remove Driver struct and refactor functions to take context Jul 6, 2023
TomAFrench
TomAFrench previously approved these changes Jul 6, 2023
@TomAFrench
Copy link
Member

Some merge conflicts but gtg after that.

@phated phated dismissed stale reviews from TomAFrench and kobyhallx via 9417e80 July 6, 2023 15:12
@TomAFrench TomAFrench changed the title feat(driver): Remove Driver struct and refactor functions to take context feat(driver): Remove Driver struct and refactor functions to take Context Jul 6, 2023
@TomAFrench TomAFrench enabled auto-merge July 6, 2023 15:18
@TomAFrench TomAFrench added this pull request to the merge queue Jul 6, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 6, 2023
@phated phated added this pull request to the merge queue Jul 6, 2023
Merged via the queue into master with commit 8895853 Jul 6, 2023
@phated phated deleted the phated/kill-driver branch July 6, 2023 17:49
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.

3 participants