Skip to content

Examples broken on latest nightly #470

@bjorn3

Description

@bjorn3
error[E0635]: unknown feature `array_chunks`
 --> crates/core_simd/examples/dot_product.rs:4:12
  |
4 | #![feature(array_chunks)]
  |            ^^^^^^^^^^^^

error[E0635]: unknown feature `array_chunks`
 --> crates/core_simd/examples/matrix_inversion.rs:4:12
  |
4 | #![feature(array_chunks, portable_simd)]
  |            ^^^^^^^^^^^^

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
  --> crates/core_simd/examples/dot_product.rs:45:7
   |
45 |     a.array_chunks::<4>()
   |       ^^^^^^^^^^^^ `&[f32]` is not an iterator
   |
help: call `.into_iter()` first
   |
45 |     a.into_iter().array_chunks::<4>()
   |       ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
  --> crates/core_simd/examples/dot_product.rs:47:16
   |
47 |         .zip(b.array_chunks::<4>().map(|&b| f32x4::from_array(b)))
   |                ^^^^^^^^^^^^ `&[f32]` is not an iterator
   |
help: call `.into_iter()` first
   |
47 |         .zip(b.into_iter().array_chunks::<4>().map(|&b| f32x4::from_array(b)))
   |                ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
  --> crates/core_simd/examples/dot_product.rs:63:7
   |
63 |     a.array_chunks::<4>()
   |       ^^^^^^^^^^^^ `&[f32]` is not an iterator
   |
help: call `.into_iter()` first
   |
63 |     a.into_iter().array_chunks::<4>()
   |       ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
  --> crates/core_simd/examples/dot_product.rs:65:16
   |
65 |         .zip(b.array_chunks::<4>().map(|&b| f32x4::from_array(b)))
   |                ^^^^^^^^^^^^ `&[f32]` is not an iterator
   |
help: call `.into_iter()` first
   |
65 |         .zip(b.into_iter().array_chunks::<4>().map(|&b| f32x4::from_array(b)))
   |                ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
  --> crates/core_simd/examples/dot_product.rs:77:7
   |
77 |     a.array_chunks::<4>()
   |       ^^^^^^^^^^^^ `&[f32]` is not an iterator
   |
help: call `.into_iter()` first
   |
77 |     a.into_iter().array_chunks::<4>()
   |       ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
  --> crates/core_simd/examples/dot_product.rs:79:16
   |
79 |         .zip(b.array_chunks::<4>().map(|&b| f32x4::from_array(b)))
   |                ^^^^^^^^^^^^ `&[f32]` is not an iterator
   |
help: call `.into_iter()` first
   |
79 |         .zip(b.into_iter().array_chunks::<4>().map(|&b| f32x4::from_array(b)))
   |                ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
   --> crates/core_simd/examples/dot_product.rs:116:10
    |
115 |       let mut sum = a
    |  ___________________-
116 | |         .array_chunks::<4>()
    | |         -^^^^^^^^^^^^ `&[f32]` is not an iterator
    | |_________|
    |
    |
help: call `.into_iter()` first
    |
116 |         .into_iter().array_chunks::<4>()
    |          ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
   --> crates/core_simd/examples/dot_product.rs:118:16
    |
118 |         .zip(b.array_chunks::<4>().map(|&b| f32x4::from_array(b)))
    |                ^^^^^^^^^^^^ `&[f32]` is not an iterator
    |
help: call `.into_iter()` first
    |
118 |         .zip(b.into_iter().array_chunks::<4>().map(|&b| f32x4::from_array(b)))
    |                ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
   --> crates/core_simd/examples/dot_product.rs:134:7
    |
134 |     a.array_chunks::<4>()
    |       ^^^^^^^^^^^^ `&[f32]` is not an iterator
    |
help: call `.into_iter()` first
    |
134 |     a.into_iter().array_chunks::<4>()
    |       ++++++++++++

error[E0599]: no method named `array_chunks` found for reference `&[f32]` in the current scope
   --> crates/core_simd/examples/dot_product.rs:136:16
    |
136 |         .zip(b.array_chunks::<4>().map(|&b| f32x4::from_array(b)))
    |                ^^^^^^^^^^^^ `&[f32]` is not an iterator
    |
help: call `.into_iter()` first
    |
136 |         .zip(b.into_iter().array_chunks::<4>().map(|&b| f32x4::from_array(b)))
    |                ++++++++++++

Some errors have detailed explanations: E0599, E0635.
For more information about an error, try `rustc --explain E0599`.
error: could not compile `core_simd` (example "dot_product") due to 11 previous errors
warning: build failed, waiting for other jobs to finish...
For more information about this error, try `rustc --explain E0635`.
error: could not compile `core_simd` (example "matrix_inversion") due to 1 previous error

Meta

rustc --version --verbose:

rustc 1.90.0-nightly (3048886e5 2025-07-30)
binary: rustc
commit-hash: 3048886e59c94470e726ecaaf2add7242510ac11
commit-date: 2025-07-30
host: aarch64-unknown-linux-gnu
release: 1.90.0-nightly
LLVM version: 20.1.8

crate version in Cargo.toml: Whichever version can be found at library/portable_simd for this rustc version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions