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

Tighten up ConstantEvaluator's public API. #2520

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

jimblandy
Copy link
Member

  • Make the fields of ConstantEvaluator private to the module.
  • Add constructor functions for_module and for_function.
  • Make FunctionConstantInfo private.

- Make the fields of `ConstantEvaluator` private to the module.
- Add constructor functions `for_module` and `for_function`.
- Make `FunctionConstantInfo` private.
@jimblandy jimblandy requested a review from teoxoy September 27, 2023 20:15
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

Great stuff!

@teoxoy teoxoy merged commit 514571f into gfx-rs:const-expressions-2 Sep 27, 2023
5 checks passed
@jimblandy jimblandy deleted the consteval-restrict-api branch September 28, 2023 02:23
jimblandy added a commit to jimblandy/naga that referenced this pull request Oct 4, 2023
- Make the fields of `ConstantEvaluator` private to the module.
- Add constructor functions `for_module` and `for_function`.
- Make `FunctionLocalData` private.
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