Skip to content

Commit

Permalink
Auto merge of rust-lang#39243 - cseale:issue_30924, r=est31
Browse files Browse the repository at this point in the history
[Gate Tests] - marking feature tests

Removal of the lang feature gate tests whitelist rust-lang#39059

r? @est31
  • Loading branch information
bors committed Jan 22, 2017
2 parents b79081c + ddb6027 commit a8fa310
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/test/compile-fail/attr-literals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/compile-fail/attr-on-generic-formals-are-visited.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down
1 change: 1 addition & 0 deletions src/test/compile-fail/gated-attr-literals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/compile-fail/macro-with-seps-err-msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/test/compile-fail/struct-path-self-feature-gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/test/compile-fail/type-parameter-invalid-lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down
6 changes: 2 additions & 4 deletions src/tools/tidy/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a8fa310

Please sign in to comment.