Skip to content

Commit

Permalink
fix build for latest unstable (1.77.0-nightly)
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarGrootKoerkamp committed Jan 27, 2024
1 parent 64c1631 commit 22132b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pa-bitpacking/src/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ where
LaneCount<L>: SupportedLaneCount,
{
for k in (0..N).rev() {
ph_simd[k] = ph_simd[k].rotate_lanes_left::<1>();
ph_simd[k] = ph_simd[k].rotate_elements_left::<1>();
let new_carry = ph_simd[k].as_array()[L - 1];
ph_simd[k].as_mut_array()[L - 1] = carry;
carry = new_carry;
Expand Down
4 changes: 2 additions & 2 deletions pa-heuristic/src/matches/local_pruning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use std::{
cmp::{max, min},
mem::swap,
simd::{Simd, SimdPartialEq, ToBitMask},
simd::{cmp::SimdPartialEq, Simd},
};

use super::{CenteredVec, Match};
Expand Down Expand Up @@ -43,7 +43,7 @@ fn extend_right_simd(a: Seq, b: Seq, i: &mut I, mut j: I, end_i: I) -> bool {
while *i < a.len() as I - 32 && j < b.len() as I - 32 {
let simd_a: Simd<u8, 32> = Simd::from_array(*a[*i as usize..].split_array_ref().0);

Check failure on line 44 in pa-heuristic/src/matches/local_pruning.rs

View workflow job for this annotation

GitHub Actions / Cargo test

no method named `split_array_ref` found for slice `[u8]` in the current scope
let simd_b: Simd<u8, 32> = Simd::from_array(*b[j as usize..].split_array_ref().0);

Check failure on line 45 in pa-heuristic/src/matches/local_pruning.rs

View workflow job for this annotation

GitHub Actions / Cargo test

no method named `split_array_ref` found for slice `[u8]` in the current scope
let eq = simd_a.simd_eq(simd_b).to_bitmask();
let eq = simd_a.simd_eq(simd_b).to_bitmask() as u32;
let cnt = if cfg!(target_endian = "little") {
eq.trailing_ones() as I
} else {
Expand Down

0 comments on commit 22132b8

Please sign in to comment.