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

Bugfix: Select.instances now works with blackboxes #1303

Merged
merged 1 commit into from
Jan 17, 2020
Merged

Conversation

azidar
Copy link
Contributor

@azidar azidar commented Jan 17, 2020

Type of change: bug report

Impact: no functional change

Development Phase: implementation

Release Notes
Previously, Select.instances would fail on a cast error if called on a module that was a black box. Now, it just returns Nil, because a black box by default has no instances. This enables other functions to rely on more consistent behavior, such as Select.collectDeep.

@azidar azidar added this to the 3.2.X milestone Jan 17, 2020
@azidar azidar requested a review from a team as a code owner January 17, 2020 23:21
Copy link
Contributor

@chick chick left a comment

Choose a reason for hiding this comment

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

LGTM
Is there any chance including blackboxes would break existing aop code. Seems like a long shot

Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

lgtm

@azidar
Copy link
Contributor Author

azidar commented Jan 17, 2020

@chick yeah I don't think it could possibly effect existing code, unless they were catching the exception, which I think would be fine to break.

@azidar azidar added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Jan 17, 2020
@mergify mergify bot merged commit 0a98a82 into master Jan 17, 2020
mergify bot pushed a commit that referenced this pull request Jan 17, 2020
@mergify mergify bot added the Backported This PR has been backported label Jan 17, 2020
mergify bot added a commit that referenced this pull request Jan 18, 2020
(cherry picked from commit 0a98a82)

Co-authored-by: Adam Izraelevitz <adam.izraelevitz@sifive.com>
@albert-magyar albert-magyar deleted the bugfix-select-bbs branch May 18, 2020 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported This PR has been backported Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants