Uh oh!
There was an error while loading. Please reload this page.
Sign extend constants in range patterns - #49949
Conversation
There was a problem hiding this comment.
this is the only actual change in this PR. Everything else is just moving things around.
The issue was that we represent constants in their native bit width, so casting to i128 didn't work out for e.g. -1u8, which is 0xFF, and stays that when casting to i128 (meaning it would be 255 instead of -1)
Mark-Simulacrum
commented
Apr 13, 2018
These changes look good to me, but I'd like to r? @eddyb |
eddyb
commented
Apr 17, 2018
@bors r+ |
bors
commented
Apr 17, 2018
📌 Commit 45529b5 has been approved by |
kennytm
commented
Apr 17, 2018
@bors p=4 |
bors
commented
Apr 18, 2018
⌛ Testing commit 45529b5357cbaa1ac90893547566cd534c6a41a4 with merge 87eeb04b1f0e8b104fe801966ba0653a134e0056... |
bors
commented
Apr 18, 2018
💔 Test failed - status-appveyor |
rust-highfive
commented
Apr 18, 2018
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
There was a problem hiding this comment.
This has been renamed to // compile-pass on master (it is still // must-compile-successfully on beta).
oli-obk
commented
Apr 19, 2018
@bors r=eddyb |
bors
commented
Apr 19, 2018
📌 Commit b22c9c0 has been approved by |
bors
commented
Apr 19, 2018
Sign extend constants in range patterns fixes#49940 r? @Mark-Simulacrum
bors
commented
Apr 19, 2018
☀️ Test successful - status-appveyor, status-travis |
alexcrichton
commented
Apr 20, 2018
Backported in #50027 |
fixes#49940
r? @Mark-Simulacrum