Uh oh!
There was an error while loading. Please reload this page.
Add more const int ops - #53697
Conversation
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Aug 27, 2018
The job 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 |
bors
commented
Aug 29, 2018
☔ The latest upstream changes (presumably #53671) made this pull request unmergeable. Please resolve the merge conflicts. |
rust-highfive
commented
Aug 31, 2018
The job 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 |
rust-highfive
commented
Aug 31, 2018
The job 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 |
bors
commented
Sep 1, 2018
☔ The latest upstream changes (presumably #53762) made this pull request unmergeable. Please resolve the merge conflicts. |
oli-obk
left a comment
There was a problem hiding this comment.
One function without annotations and a test nit, lgmt otherwise
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Sep 3, 2018
@bors r+ |
bors
commented
Sep 3, 2018
📌 Commit 4811e5b has been approved by |
bors
commented
Sep 3, 2018
Add more const int ops r? @oli-obk Tracking Issue: #53718 list of `const fn`s in this PR: - `feature = const_int_rotate` - `rotate_left` - `rotate_right` - `feature = const_int_wrapping` - `wrapping_add` - `wrapping_sub` - `wrapping_mul` - `wrapping_shl` - `wrapping_shr` - `feature = const_int_overflowing` - `overflowing_add` - `overflowing_sub` - `overflowing_mul` - `overflowing_shl` - `overflowing_shr` - `feature = const_int_sign` - `is_positive` - `is_negative` - `feature = const_int_conversion` - `reverse_bits` - `to_le_bytes` - `to_ne_bytes` - `from_be_bytes` - `from_le_bytes` - `from_ne_bytes` - `reverse_bits`
bors
commented
Sep 3, 2018
☀️ Test successful - status-appveyor, status-travis |
RalfJung
commented
Sep 6, 2018
This PR broke miri's test suite. In particular, this PR fails to properly flag undefined behavior when an @TimDiekmann can you either remove the two "unchecked" intrinsics again, or implement the check that miri performs? Note that "unchecked" means "it is UB to violate the requirement", and detecting such UB is an explicit goal for the miri engine. |
…s, r=oli-obk Add unchecked_shl/shr check for intrinsics to fix miri's test suit r? @RalfJung cc @oli-obkrust-lang#53697 broke miri's test suite as described in [this comment](rust-lang#53697 (comment)). This PR adds test for the `unchecked_shr/shl` for the intrinsics.
r? @oli-obk
Tracking Issue: #53718
list of
const fns in this PR:feature = const_int_rotaterotate_leftrotate_rightfeature = const_int_wrappingwrapping_addwrapping_subwrapping_mulwrapping_shlwrapping_shrfeature = const_int_overflowingoverflowing_addoverflowing_suboverflowing_muloverflowing_shloverflowing_shrfeature = const_int_signis_positiveis_negativefeature = const_int_conversionreverse_bitsto_le_bytesto_ne_bytesfrom_be_bytesfrom_le_bytesfrom_ne_bytesreverse_bits