]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #52876 - cuviper:const-endianness-be, r=kennytm
authorPietro Albini <pietro@pietroalbini.org>
Wed, 1 Aug 2018 08:12:58 +0000 (10:12 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Aug 2018 08:12:58 +0000 (10:12 +0200)
commitb3d6050358018fc40cb7695d620929c26ab5d614
tree90997aaac0dd8e208cbcbdab19e365bbfdbe1cc9
parent341f88246252514f9f6ee9e23de05841fe01de98
parent1ea2765918d1212a07e1359537470c477d82a681
Rollup merge of #52876 - cuviper:const-endianness-be, r=kennytm

run-pass/const-endianness: negate before to_le()

`const LE_I128` needs parentheses to negate the value *before* calling
`to_le()`, otherwise it doesn't match the operations performed in the
black-boxed part of the test.  This only makes a tangible difference on
big-endian targets.