gangliao commented on issue #766:
URL: https://github.com/apache/arrow-rs/issues/766#issuecomment-921153073
Still happen in arrow-datafusion ...
```
cargo build --target x86_64-unknown-linux-gnu --features "simd"
```
```bash
error: type parameters must be declared prior to const parameters
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:20:54
|
20 | pub unsafe fn __shuffle_vector2<const IDX: [u32; 2], T, U>(x: T, y: T)
-> U
| ----------------------^--^- help:
reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX:
[u32; 2]>`
error: type parameters must be declared prior to const parameters
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:30:54
|
30 | pub unsafe fn __shuffle_vector4<const IDX: [u32; 4], T, U>(x: T, y: T)
-> U
| ----------------------^--^- help:
reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX:
[u32; 4]>`
error: type parameters must be declared prior to const parameters
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:40:54
|
40 | pub unsafe fn __shuffle_vector8<const IDX: [u32; 8], T, U>(x: T, y: T)
-> U
| ----------------------^--^- help:
reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX:
[u32; 8]>`
error: type parameters must be declared prior to const parameters
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:50:56
|
50 | pub unsafe fn __shuffle_vector16<const IDX: [u32; 16], T, U>(x: T, y:
T) -> U
| -----------------------^--^- help:
reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX:
[u32; 16]>`
error: type parameters must be declared prior to const parameters
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:60:56
|
60 | pub unsafe fn __shuffle_vector32<const IDX: [u32; 32], T, U>(x: T, y:
T) -> U
| -----------------------^--^- help:
reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX:
[u32; 32]>`
error: type parameters must be declared prior to const parameters
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:70:56
|
70 | pub unsafe fn __shuffle_vector64<const IDX: [u32; 64], T, U>(x: T, y:
T) -> U
| -----------------------^--^- help:
reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX:
[u32; 64]>`
Compiling inventory-impl v0.1.10
Compiling ctor v0.1.21
Compiling typetag-impl v0.1.7
Compiling async-trait v0.1.51
error: `[u32; 2]` is forbidden as the type of a const generic parameter
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:20:44
|
20 | pub unsafe fn __shuffle_vector2<const IDX: [u32; 2], T, U>(x: T, y: T)
-> U
| ^^^^^^^^
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with
`#![feature(const_generics)]`
error: `[u32; 4]` is forbidden as the type of a const generic parameter
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:30:44
|
30 | pub unsafe fn __shuffle_vector4<const IDX: [u32; 4], T, U>(x: T, y: T)
-> U
| ^^^^^^^^
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with
`#![feature(const_generics)]`
error: `[u32; 8]` is forbidden as the type of a const generic parameter
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:40:44
|
40 | pub unsafe fn __shuffle_vector8<const IDX: [u32; 8], T, U>(x: T, y: T)
-> U
| ^^^^^^^^
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with
`#![feature(const_generics)]`
error: `[u32; 16]` is forbidden as the type of a const generic parameter
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:50:45
|
50 | pub unsafe fn __shuffle_vector16<const IDX: [u32; 16], T, U>(x: T, y:
T) -> U
| ^^^^^^^^^
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with
`#![feature(const_generics)]`
error: `[u32; 32]` is forbidden as the type of a const generic parameter
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:60:45
|
60 | pub unsafe fn __shuffle_vector32<const IDX: [u32; 32], T, U>(x: T, y:
T) -> U
| ^^^^^^^^^
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with
`#![feature(const_generics)]`
error: `[u32; 64]` is forbidden as the type of a const generic parameter
-->
/home/gangliao/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.6/src/codegen/llvm.rs:70:45
|
70 | pub unsafe fn __shuffle_vector64<const IDX: [u32; 64], T, U>(x: T, y:
T) -> U
| ^^^^^^^^^
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with
`#![feature(const_generics)]`
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]