@@ -3379,180 +3379,6 @@ extern "platform-intrinsic" {
3379
3379
```
3380
3380
"## ,
3381
3381
3382
- E0440 : r##"
3383
- A platform-specific intrinsic function has the wrong number of type
3384
- parameters. Erroneous code example:
3385
-
3386
- ```compile_fail,E0440
3387
- #![feature(repr_simd)]
3388
- #![feature(platform_intrinsics)]
3389
-
3390
- #[repr(simd)]
3391
- struct f64x2(f64, f64);
3392
-
3393
- extern "platform-intrinsic" {
3394
- fn x86_mm_movemask_pd<T>(x: f64x2) -> i32;
3395
- // error: platform-specific intrinsic has wrong number of type
3396
- // parameters
3397
- }
3398
- ```
3399
-
3400
- Please refer to the function declaration to see if it corresponds
3401
- with yours. Example:
3402
-
3403
- ```
3404
- #![feature(repr_simd)]
3405
- #![feature(platform_intrinsics)]
3406
-
3407
- #[repr(simd)]
3408
- struct f64x2(f64, f64);
3409
-
3410
- extern "platform-intrinsic" {
3411
- fn x86_mm_movemask_pd(x: f64x2) -> i32;
3412
- }
3413
- ```
3414
- "## ,
3415
-
3416
- E0441 : r##"
3417
- An unknown platform-specific intrinsic function was used. Erroneous
3418
- code example:
3419
-
3420
- ```compile_fail,E0441
3421
- #![feature(repr_simd)]
3422
- #![feature(platform_intrinsics)]
3423
-
3424
- #[repr(simd)]
3425
- struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
3426
-
3427
- extern "platform-intrinsic" {
3428
- fn x86_mm_adds_ep16(x: i16x8, y: i16x8) -> i16x8;
3429
- // error: unrecognized platform-specific intrinsic function
3430
- }
3431
- ```
3432
-
3433
- Please verify that the function name wasn't misspelled, and ensure
3434
- that it is declared in the rust source code (in the file
3435
- src/librustc_platform_intrinsics/x86.rs). Example:
3436
-
3437
- ```
3438
- #![feature(repr_simd)]
3439
- #![feature(platform_intrinsics)]
3440
-
3441
- #[repr(simd)]
3442
- struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
3443
-
3444
- extern "platform-intrinsic" {
3445
- fn x86_mm_adds_epi16(x: i16x8, y: i16x8) -> i16x8; // ok!
3446
- }
3447
- ```
3448
- "## ,
3449
-
3450
- E0442 : r##"
3451
- Intrinsic argument(s) and/or return value have the wrong type.
3452
- Erroneous code example:
3453
-
3454
- ```compile_fail,E0442
3455
- #![feature(repr_simd)]
3456
- #![feature(platform_intrinsics)]
3457
-
3458
- #[repr(simd)]
3459
- struct i8x16(i8, i8, i8, i8, i8, i8, i8, i8,
3460
- i8, i8, i8, i8, i8, i8, i8, i8);
3461
- #[repr(simd)]
3462
- struct i32x4(i32, i32, i32, i32);
3463
- #[repr(simd)]
3464
- struct i64x2(i64, i64);
3465
-
3466
- extern "platform-intrinsic" {
3467
- fn x86_mm_adds_epi16(x: i8x16, y: i32x4) -> i64x2;
3468
- // error: intrinsic arguments/return value have wrong type
3469
- }
3470
- ```
3471
-
3472
- To fix this error, please refer to the function declaration to give
3473
- it the awaited types. Example:
3474
-
3475
- ```
3476
- #![feature(repr_simd)]
3477
- #![feature(platform_intrinsics)]
3478
-
3479
- #[repr(simd)]
3480
- struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
3481
-
3482
- extern "platform-intrinsic" {
3483
- fn x86_mm_adds_epi16(x: i16x8, y: i16x8) -> i16x8; // ok!
3484
- }
3485
- ```
3486
- "## ,
3487
-
3488
- E0443 : r##"
3489
- Intrinsic argument(s) and/or return value have the wrong type.
3490
- Erroneous code example:
3491
-
3492
- ```compile_fail,E0443
3493
- #![feature(repr_simd)]
3494
- #![feature(platform_intrinsics)]
3495
-
3496
- #[repr(simd)]
3497
- struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
3498
- #[repr(simd)]
3499
- struct i64x8(i64, i64, i64, i64, i64, i64, i64, i64);
3500
-
3501
- extern "platform-intrinsic" {
3502
- fn x86_mm_adds_epi16(x: i16x8, y: i16x8) -> i64x8;
3503
- // error: intrinsic argument/return value has wrong type
3504
- }
3505
- ```
3506
-
3507
- To fix this error, please refer to the function declaration to give
3508
- it the awaited types. Example:
3509
-
3510
- ```
3511
- #![feature(repr_simd)]
3512
- #![feature(platform_intrinsics)]
3513
-
3514
- #[repr(simd)]
3515
- struct i16x8(i16, i16, i16, i16, i16, i16, i16, i16);
3516
-
3517
- extern "platform-intrinsic" {
3518
- fn x86_mm_adds_epi16(x: i16x8, y: i16x8) -> i16x8; // ok!
3519
- }
3520
- ```
3521
- "## ,
3522
-
3523
- E0444 : r##"
3524
- A platform-specific intrinsic function has wrong number of arguments.
3525
- Erroneous code example:
3526
-
3527
- ```compile_fail,E0444
3528
- #![feature(repr_simd)]
3529
- #![feature(platform_intrinsics)]
3530
-
3531
- #[repr(simd)]
3532
- struct f64x2(f64, f64);
3533
-
3534
- extern "platform-intrinsic" {
3535
- fn x86_mm_movemask_pd(x: f64x2, y: f64x2, z: f64x2) -> i32;
3536
- // error: platform-specific intrinsic has invalid number of arguments
3537
- }
3538
- ```
3539
-
3540
- Please refer to the function declaration to see if it corresponds
3541
- with yours. Example:
3542
-
3543
- ```
3544
- #![feature(repr_simd)]
3545
- #![feature(platform_intrinsics)]
3546
-
3547
- #[repr(simd)]
3548
- struct f64x2(f64, f64);
3549
-
3550
- extern "platform-intrinsic" {
3551
- fn x86_mm_movemask_pd(x: f64x2) -> i32; // ok!
3552
- }
3553
- ```
3554
- "## ,
3555
-
3556
3382
E0516 : r##"
3557
3383
The `typeof` keyword is currently reserved but unimplemented.
3558
3384
Erroneous code example:
@@ -4891,6 +4717,11 @@ register_diagnostics! {
4891
4717
// E0372, // coherence not object safe
4892
4718
E0377 , // the trait `CoerceUnsized` may only be implemented for a coercion
4893
4719
// between structures with the same definition
4720
+ E0440 , // errors associated with unstable platform intrinsics
4721
+ E0441 , // errors associated with unstable platform intrinsics
4722
+ E0442 , // errors associated with unstable platform intrinsics
4723
+ E0443 , // errors associated with unstable platform intrinsics
4724
+ E0444 , // errors associated with unstable platform intrinsics
4894
4725
E0533 , // `{}` does not name a unit variant, unit struct or a constant
4895
4726
// E0563, // cannot determine a type for this `impl Trait`: {} // removed in 6383de15
4896
4727
E0564 , // only named lifetimes are allowed in `impl Trait`,
0 commit comments