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

Add result return type to evaluate_instruction #649

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

kevaundray
Copy link
Contributor

Related issue(s)

Resolves #

Description

Returns a Result type for evaluate instruction. See #634 where we are currently panicking because we do not have a Result type. This is also added in #635 PR.

Summary of changes

Dependency additions / changes

Test additions / changes

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Additional context

@kevaundray kevaundray merged commit d218dfc into master Jan 17, 2023
@kevaundray kevaundray deleted the kw/add-result-to-ssa-functions branch January 17, 2023 10:41
Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

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

In the future, lets keep changes like this in the PRs they are relevant to. This change does not make sense as a standalone PR since evaluate_instruction never returns any errors to begin with. Only when looking in PR #634 can you see the added return Err(...) in the code.

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