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

rustc: fix a conditional #1300

Merged
merged 2 commits into from
Apr 27, 2022
Merged

Conversation

gburgessiv
Copy link
Contributor

("bar" or "baz") always evaluates to "bar", so this conditional ignores "dylib". This seems unintended.

I don't have a particular test-case in mind for this; just noticed the oddity as I was browsing through the code.

cc @krasimirgg, who seems to have tweaked things around here recentlyish?

`("bar" or "baz")` always evaluates to "bar", so this conditional
ignores `"dylib"`. This seems unintended.
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

This looks good to me but would now be a change in behavior. @hlopko @scentini I'm wondering what your thoughts are here too.

@scentini
Copy link
Collaborator

IIUC we currently don't have a use case for dylib, so this fix comes at the right time. Thanks!

1 similar comment
@scentini
Copy link
Collaborator

IIUC we currently don't have a use case for dylib, so this fix comes at the right time. Thanks!

@hlopko hlopko removed their request for review April 27, 2022 11:33
@scentini scentini merged commit c63ad97 into bazelbuild:main Apr 27, 2022
@gburgessiv
Copy link
Contributor Author

(Thank you all! :) )

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