bitvec icon indicating copy to clipboard operation
bitvec copied to clipboard

0.19.4 tests fail to compile on s390x hardware (big-endian)

Open decathorpe opened this issue 4 years ago • 0 comments
trafficstars

error[E0277]: the trait bound `&array::BitArray<order::Msb0>: From<&slice::BitSlice>` is not satisfied
   --> src/array/traits.rs:417:13
    |
417 |             (&*bits).try_into();
    |                      ^^^^^^^^ the trait `From<&slice::BitSlice>` is not implemented for `&array::BitArray<order::Msb0>`
    |
    = help: the following implementations were found:
              <array::BitArray<O, V> as From<V>>
    = note: required because of the requirements on the impl of `Into<&array::BitArray<order::Msb0>>` for `&slice::BitSlice`
    = note: required because of the requirements on the impl of `TryFrom<&slice::BitSlice>` for `&array::BitArray<order::Msb0>`
    = note: required because of the requirements on the impl of `TryInto<&array::BitArray<order::Msb0>>` for `&slice::BitSlice`
error[E0277]: the trait bound `&mut array::BitArray<order::Msb0>: From<&mut slice::BitSlice>` is not satisfied
   --> src/array/traits.rs:420:9
    |
420 |             bits.try_into();
    |                  ^^^^^^^^ the trait `From<&mut slice::BitSlice>` is not implemented for `&mut array::BitArray<order::Msb0>`
    |
    = help: the following implementations were found:
              <array::BitArray<O, V> as From<V>>
    = note: required because of the requirements on the impl of `Into<&mut array::BitArray<order::Msb0>>` for `&mut slice::BitSlice`
    = note: required because of the requirements on the impl of `TryFrom<&mut slice::BitSlice>` for `&mut array::BitArray<order::Msb0>`
    = note: required because of the requirements on the impl of `TryInto<&mut array::BitArray<order::Msb0>>` for `&mut slice::BitSlice`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.
error: could not compile `bitvec`

I have no idea why this would compile successfuly on all architectures that are supported by Fedora, but not on s390x - the only idea I have is that s390x is the only big-endian architecture.

I have not tested the 0.20.x releases, because I need >= 0.19.3, < 0.20.0 for nom.

decathorpe avatar Jan 11 '21 16:01 decathorpe