Uh oh!
There was an error while loading. Please reload this page.
librustc_llvm: encapsulate "as" cast from/to a bool - #32700
Conversation
rust-highfive
commented
Apr 3, 2016
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Stylistically we tend to not have spaces after the ! operator
alexcrichton
commented
Apr 3, 2016
This seems like it may be a difficult convention to follow as it's easier to just call the function directly and not call an extra function to wrap the result. How do we ensure that we avoid adding more |
When the trueness is defined as "!= 0" rather than "== 1", it's error prone to write such a comparison for each occurrence. Signed-off-by: NODA, Kai <nodakai@gmail.com>
bda2358 to
501d61aComparenodakai
commented
Apr 10, 2016
@alexcrichton True, when the underlying APIs themselves have a confusing interface, I can only hope someone modifying this potion of code notices the |
alexcrichton
commented
Apr 11, 2016
I guess my point is that I don't think this is worth it unless we have a deeper change. We're not currently in the mindset of avoiding |
bors
commented
Apr 20, 2016
☔ The latest upstream changes (presumably #31709) made this pull request unmergeable. Please resolve the merge conflicts. |
nagisa
commented
May 3, 2016
Should this be closed? |
nodakai
commented
May 3, 2016
No. 野田 開 nodakai@gmail.com 2016-05-04 1:19 GMT+08:00 Simonas Kazlauskas notifications@github.com:
|
alexcrichton
commented
Jul 19, 2016
Closing due to inactivity, but feel free to reopen with a rebase! |
When the trueness is defined as "!= 0" rather than "== 1", it's error prone to write such a comparison for each occurrence.