Auto merge of #39243 - cseale:issue_30924, r=est31

[Gate Tests] - marking feature tests

Removal of the lang feature gate tests whitelist #39059

r? @est31
This commit is contained in:
bors 2017-01-22 19:12:59 +00:00
commit a8fa31029f
7 changed files with 13 additions and 4 deletions

View File

@ -10,6 +10,8 @@
// Check that literals in attributes parse just fine.
// gate-test-custom_attribute
#![feature(rustc_attrs, attr_literals)]
#![allow(dead_code)]
#![allow(unused_variables)]

View File

@ -15,6 +15,8 @@
// checking feature-gating of the attributes themselves, not the
// capability to parse such attributes in that context.
// gate-test-custom_attribute
#![feature(generic_param_attrs)]
#![allow(dead_code)]

View File

@ -11,6 +11,7 @@
// Check that literals in attributes don't parse without the feature gate.
// gate-test-attr_literals
// gate-test-custom_attribute
#![feature(rustc_attrs)]
#![allow(dead_code)]

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// gate-test-use_extern_macros
fn main() {
globnar::brotz!(); //~ ERROR non-ident macro paths are experimental
::foo!(); //~ ERROR non-ident macro paths are experimental

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// gate-test-more_struct_aliases
struct S;
trait Tr {

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// gate-test-default_type_parameter_fallback
#![deny(future_incompatible)]
#![allow(dead_code)]

View File

@ -166,10 +166,8 @@ pub fn check(path: &Path, bad: &mut bool) {
// FIXME get this whitelist empty.
let whitelist = vec![
"abi_ptx", "simd", "macro_reexport",
"more_struct_aliases", "static_recursion", "reflect",
"quote", "cfg_target_has_atomic", "custom_attribute",
"default_type_parameter_fallback",
"use_extern_macros", "staged_api", "const_indexing",
"static_recursion", "reflect", "quote",
"cfg_target_has_atomic", "staged_api", "const_indexing",
"unboxed_closures", "stmt_expr_attributes",
"cfg_target_thread_local", "unwind_attributes",
"inclusive_range_syntax", "proc_macro"