Uh oh!
There was an error while loading. Please reload this page.
Change some helps to suggestions - #31053
Conversation
eddyb
commented
Jan 20, 2016
No tests? |
8f05786 to
de82599CompareManishearth
commented
Jan 20, 2016
Pushed the test fixes. |
de82599 to
4a9a568CompareManishearth
commented
Jan 20, 2016
oh, the issue is that the other suggestion is hard to trigger, not sure the context in which resolve is set to emit_errors=false |
There was a problem hiding this comment.
I think the cast way is the only one you can do generically. as -1isize as usize does not yield the same as !1usize. It would need to be !(x-1), which errors if x == 0
There was a problem hiding this comment.
Huh. Adding a generic cast here is harder so I'll just fix up the help message.
bors
commented
Jan 21, 2016
☔ The latest upstream changes (presumably #31010) made this pull request unmergeable. Please resolve the merge conflicts. |
Manishearth
commented
Jan 21, 2016
Given that the unsigned one doesn't have a generic suggestion and the other one can't be triggered, closing |
r? @eddyb