Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gate Tests] - marking feature tests #39243

Merged
merged 1 commit into from
Jan 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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