From dc53e561a12cf63a0e0677a5abd7469f315fdfb0 Mon Sep 17 00:00:00 2001 From: Daniel Xu Date: Sat, 25 Feb 2017 17:02:19 -0600 Subject: [PATCH] Add compile fail test for SIMD --- src/test/compile-fail/feature-gate-simd.rs | 23 ++++++++++++++++++++++ src/tools/tidy/src/features.rs | 1 - 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/test/compile-fail/feature-gate-simd.rs diff --git a/src/test/compile-fail/feature-gate-simd.rs b/src/test/compile-fail/feature-gate-simd.rs new file mode 100644 index 0000000000000..168e84aa128c0 --- /dev/null +++ b/src/test/compile-fail/feature-gate-simd.rs @@ -0,0 +1,23 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + + +// pretty-expanded FIXME #23616 + +#[repr(simd)] +struct RGBA { + r: f32, + g: f32, + b: f32, + a: f32 +} +//~^^^^^^ ERROR SIMD types are experimental and possibly buggy (see issue #27731) + +pub fn main() {} diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 3e951c85589f8..d3c4378f9e75d 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -167,7 +167,6 @@ pub fn check(path: &Path, bad: &mut bool) { // FIXME get this whitelist empty. let whitelist = vec![ - "simd", "stmt_expr_attributes", "cfg_target_thread_local", "unwind_attributes", ];