File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -3020,6 +3020,34 @@ parameters. You can read more about it in the API documentation:
3020
3020
https://doc.rust-lang.org/std/marker/struct.PhantomData.html
3021
3021
"## ,
3022
3022
3023
+ E0440 : r##"
3024
+ A platform-specific intrinsic function has wrong number of type
3025
+ parameters. Erroneous code example:
3026
+
3027
+ ```
3028
+ #[repr(simd)]
3029
+ struct f64x2(f64, f64);
3030
+
3031
+ extern "platform-intrinsic" {
3032
+ fn x86_mm_movemask_pd<T>(x: f64x2) -> i32;
3033
+ // error: platform-specific intrinsic has wrong number of type
3034
+ // parameters
3035
+ }
3036
+ ```
3037
+
3038
+ Please refer to the function declaration to see if it corresponds
3039
+ with yours. Example:
3040
+
3041
+ ```
3042
+ #[repr(simd)]
3043
+ struct f64x2(f64, f64);
3044
+
3045
+ extern "platform-intrinsic" {
3046
+ fn x86_mm_movemask_pd(x: f64x2) -> i32;
3047
+ }
3048
+ ```
3049
+ "## ,
3050
+
3023
3051
E0441 : r##"
3024
3052
An unknown platform-specific intrinsic function was used. Erroneous
3025
3053
code example:
@@ -3218,5 +3246,4 @@ register_diagnostics! {
3218
3246
// type `{}` was overridden
3219
3247
E0436 , // functional record update requires a struct
3220
3248
E0439 , // invalid `simd_shuffle`, needs length: `{}`
3221
- E0440 , // platform-specific intrinsic has wrong number of type parameters
3222
3249
}
You can’t perform that action at this time.
0 commit comments