diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-05-24 12:58:17 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-05-24 12:58:17 +0200 |
| commit | 94b16f123feb6d06862cfaa896fe2c16598a01a5 (patch) | |
| tree | d2ec7458207732a82d3c8b8184ea056d806dc676 | |
| parent | 66faadaf33cdf7c81e91041147e8097e03fe3c90 (diff) | |
| parent | 30dd087baafad3a1ff5396e8243ceaf0144bae69 (diff) | |
| download | rust-94b16f123feb6d06862cfaa896fe2c16598a01a5.tar.gz rust-94b16f123feb6d06862cfaa896fe2c16598a01a5.zip | |
Rollup merge of #33779 - GuillaumeGomez:repr-simd, r=steveklabnik
Update repr_simd r? @steveklabnik
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 780f8e9ef75..40b9b0e01ab 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -978,18 +978,18 @@ are generic. This will cause an error: ```compile_fail -#![feature(simd)] +#![feature(repr_simd)] -#[simd] +#[repr(simd)] struct Bad<T>(T, T, T); ``` This will not: ``` -#![feature(simd)] +#![feature(repr_simd)] -#[simd] +#[repr(simd)] struct Good(u32, u32, u32); ``` "##, @@ -1026,18 +1026,18 @@ will trigger this error. This will cause an error: ```compile_fail -#![feature(simd)] +#![feature(repr_simd)] -#[simd] +#[repr(simd)] struct Bad(u16, u32, u32); ``` This will not: ``` -#![feature(simd)] +#![feature(repr_simd)] -#[simd] +#[repr(simd)] struct Good(u32, u32, u32); ``` "##, @@ -1049,18 +1049,18 @@ must be machine types so SIMD operations can be applied to them. This will cause an error: ```compile_fail -#![feature(simd)] +#![feature(repr_simd)] -#[simd] +#[repr(simd)] struct Bad(String); ``` This will not: ``` -#![feature(simd)] +#![feature(repr_simd)] -#[simd] +#[repr(simd)] struct Good(u32, u32, u32); ``` "##, |
