Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add comparison operators to boolean const eval. #37056

Merged
merged 1 commit into from
Oct 13, 2016

Conversation

Mark-Simulacrum
Copy link
Member

I think it might be worth adding tests here, but since I don't know how or where to do that, I have not done so yet. Willing to do so if asked and given an explanation as to how.

Fixes #37047.

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@oli-obk
Copy link
Contributor

oli-obk commented Oct 10, 2016

For tests you can simply add lines exhibiting the error before your changes in this file: https://github.com/rust-lang/rust/blob/master/src/test/run-pass/const-err.rs

@Mark-Simulacrum
Copy link
Member Author

Added tests.

@bluss
Copy link
Member

bluss commented Oct 11, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 11, 2016

📌 Commit f9c73ad has been approved by bluss

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Oct 11, 2016
…, r=bluss

Add comparison operators to boolean const eval.

I think it might be worth adding tests here, but since I don't know how or where to do that, I have not done so yet. Willing to do so if asked and given an explanation as to how.

Fixes rust-lang#37047.
bors added a commit that referenced this pull request Oct 12, 2016
Rollup of 10 pull requests

- Successful merges: #36692, #36743, #36762, #36991, #37023, #37050, #37056, #37064, #37066, #37067
- Failed merges:
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Oct 12, 2016
…, r=bluss

Add comparison operators to boolean const eval.

I think it might be worth adding tests here, but since I don't know how or where to do that, I have not done so yet. Willing to do so if asked and given an explanation as to how.

Fixes rust-lang#37047.
bors added a commit that referenced this pull request Oct 12, 2016
@bors bors merged commit f9c73ad into rust-lang:master Oct 13, 2016
@Mark-Simulacrum Mark-Simulacrum deleted the fix-bool-comparison branch October 22, 2016 02:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants