Skip to content

Commit dc53e56

Browse files
committed
Add compile fail test for SIMD
1 parent c0b7112 commit dc53e56

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
12+
// pretty-expanded FIXME #23616
13+
14+
#[repr(simd)]
15+
struct RGBA {
16+
r: f32,
17+
g: f32,
18+
b: f32,
19+
a: f32
20+
}
21+
//~^^^^^^ ERROR SIMD types are experimental and possibly buggy (see issue #27731)
22+
23+
pub fn main() {}

src/tools/tidy/src/features.rs

-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ pub fn check(path: &Path, bad: &mut bool) {
167167

168168
// FIXME get this whitelist empty.
169169
let whitelist = vec![
170-
"simd",
171170
"stmt_expr_attributes",
172171
"cfg_target_thread_local", "unwind_attributes",
173172
];

0 commit comments

Comments
 (0)