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

chore: Add stdlib to every crate as it is added to graph #2392

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

phated
Copy link
Contributor

@phated phated commented Aug 21, 2023

Description

Problem*

Resolves #1681

Summary*

This removes the stdlib propagation from the internals of check_crate and instead adds it to each crate in the CrateGraph as they are being added. We can do this because the Stdlib CrateId is a separate variant and we know that each crate should have access to it.

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.

Base automatically changed from phated/root-crate-variant to master August 22, 2023 22:19
@phated phated force-pushed the phated/no-special-file-id branch from 56dd093 to e547c45 Compare August 22, 2023 22:43
@phated phated marked this pull request as ready for review August 22, 2023 22:44
@phated phated changed the title chore: Add stdlib to every crate as it is added to graph chore!: Add stdlib to every crate as it is added to graph Aug 23, 2023
@phated phated force-pushed the phated/no-special-file-id branch from e27dc88 to 733acb8 Compare August 23, 2023 17:01
@TomAFrench TomAFrench changed the title chore!: Add stdlib to every crate as it is added to graph chore: Add stdlib to every crate as it is added to graph Aug 23, 2023
@TomAFrench
Copy link
Member

Making this non-breaking again due to changes above.

@phated phated requested a review from TomAFrench August 24, 2023 15:36
@phated phated added this pull request to the merge queue Aug 24, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 24, 2023
@TomAFrench TomAFrench added this pull request to the merge queue Aug 24, 2023
Merged via the queue into master with commit d31ae7f Aug 24, 2023
@TomAFrench TomAFrench deleted the phated/no-special-file-id branch August 24, 2023 18:19
TomAFrench added a commit that referenced this pull request Aug 24, 2023
* master:
  chore: improve error message for InternalError (#2429)
  chore: Add stdlib to every crate as it is added to graph (#2392)
  feat: create equivalence relationships for intermediate witnesses from multiplication (#2414)
  chore(ci): Fix version of `cross` to 0.2.5 (#2426)
  fix: Correct off-by-one errors in lexer spans (#2393)
TomAFrench added a commit that referenced this pull request Aug 25, 2023
* master:
  fix: Implement new mem2reg pass (#2420)
  feat(nargo): Support optional directory in git dependencies (#2436)
  fix(acir_gen): Pass accurate contents to slice inputs for bb func calls (#2435)
  fix(ssa): codegen missing check for unary minus (#2413)
  fix(lsp): Remove duplicated creation of lenses (#2433)
  feat: Add `test(should_fail)` attribute for tests that are meant to fail (#2418)
  chore: improve error message for InternalError (#2429)
  chore: Add stdlib to every crate as it is added to graph (#2392)
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.

FileId(0) should not be a special value
2 participants