Skip to content

Conversation

@tautschnig
Copy link
Member

Description of changes:

There will be future re-use of this code, so move it to a public function.

Resolved issues:

n/a

Related RFC:

n/a

Call-outs:

n/a

Testing:

  • How is this change tested? Used in existing tests (in CI).

  • Is this a refactor change? Yes.

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@tautschnig tautschnig requested a review from a team as a code owner April 13, 2023 10:39
There will be future re-use of this code, so move it to a public
function.
Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

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

I think we should factor out the SetDiscriminant, not the niche computation though. Also, in this case, I would prefer this to be part of the toolchain update PR since any change to that PR could impact this one.

@tautschnig
Copy link
Member Author

Closing as, once squashed, #2347 will no longer need this change.

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