diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a228c181..4cde8895 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -101,6 +101,10 @@ jobs: with: toolchain: ${{ matrix.rust }} targets: ${{ matrix.target }} + # rust-toolchain.toml pins 1.94.1 — install the cross-compile target + # for that toolchain too, since dtolnay/rust-toolchain only installs + # for the matrix value which may differ from the pinned version. + - run: rustup target add ${{ matrix.target }} - name: Tests run: | cargo rustc "--target=${{ matrix.target }}" --no-default-features --features portable-atomic-critical-section diff --git a/src/hpc/crystal_encoder.rs b/src/hpc/crystal_encoder.rs index 818a40aa..26188f9a 100644 --- a/src/hpc/crystal_encoder.rs +++ b/src/hpc/crystal_encoder.rs @@ -354,7 +354,7 @@ fn distillation_loss(student: &mut Node, teacher: &mut Node, lambda: f32) -> f32 /// # Example /// /// ``` -/// use ndarray::hpc::crystal_encoder::{CrystalEncoder, Role, distill}; +/// use ndarray::hpc::crystal_encoder::{CrystalEncoder, distill}; /// use ndarray::hpc::node::Node; /// /// let teacher = Node::random(42); diff --git a/src/hpc/nibble.rs b/src/hpc/nibble.rs index 4eceb246..05659f95 100644 --- a/src/hpc/nibble.rs +++ b/src/hpc/nibble.rs @@ -301,7 +301,7 @@ pub(crate) unsafe fn nibble_above_threshold_avx2(packed: &[u8], threshold: u8) - /// # Examples /// /// ``` -/// use ndarray::hpc::nibble::{nibble_pack, nibble_propagate_bfs, nibble_unpack}; +/// use ndarray::hpc::nibble::{nibble_pack, nibble_propagate_bfs}; /// let mut packed = nibble_pack(&[5, 3, 10, 1, 0, 15, 2, 7]); /// let frontier = nibble_propagate_bfs(&mut packed, 3); /// // After subtracting 3: [2, 0, 7, 0, 0, 12, 0, 4] diff --git a/src/hpc/udf_kernels.rs b/src/hpc/udf_kernels.rs index 30735ffa..b4b19293 100644 --- a/src/hpc/udf_kernels.rs +++ b/src/hpc/udf_kernels.rs @@ -188,8 +188,8 @@ pub fn udf_nars_revision(freq1: u16, conf1: u16, freq2: u16, conf2: u16) -> (u16 /// ``` /// use ndarray::hpc::udf_kernels::udf_sigma_classify; /// -/// assert_eq!(udf_sigma_classify(1000, 100), "exact"); -/// assert_eq!(udf_sigma_classify(1000, 1500), "noise"); +/// assert_eq!(udf_sigma_classify(100, 1000), "exact"); +/// assert_eq!(udf_sigma_classify(1500, 1000), "noise"); /// ``` pub fn udf_sigma_classify(band: u32, threshold: u64) -> &'static str { use super::cascade::Band;