Skip to content

Commit b1e3176

Browse files
committed
Auto merge of #40101 - danobi:feat_gate_test_simd, r=alexcrichton
Add compile fail test for SIMD This completes the missing SIMD test task for issue #39059.
2 parents f0b5145 + dc53e56 commit b1e3176

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)