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

remove bool -> int conversion in const evaluator #29797

Merged
merged 2 commits into from
Nov 17, 2015

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Nov 12, 2015

the const evaluator has a bool constant value, no need to use integers

the fromb function is very old. It took me a while of git-blame until i found where it was created. I think it was just a hack. All tests still pass.

I also forbade && and || on integral types

the const evaluator has a bool constant value, no need to use integers
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@oli-obk
Copy link
Contributor Author

oli-obk commented Nov 17, 2015

added unit tests

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Nov 17, 2015

📌 Commit 96cfac6 has been approved by nikomatsakis

@bors
Copy link
Contributor

bors commented Nov 17, 2015

⌛ Testing commit 96cfac6 with merge 841e36e...

bors added a commit that referenced this pull request Nov 17, 2015
the const evaluator has a bool constant value, no need to use integers

the `fromb` function is very old. It took me a while of git-blame until i found where it was created. I think it was just a hack. All tests still pass.

I also forbade `&&` and `||` on integral types
@bors bors merged commit 96cfac6 into rust-lang:master Nov 17, 2015
@oli-obk oli-obk deleted the remove-fromb branch November 20, 2015 13:48
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.

4 participants