Skip to content

Commit ddb6027

Browse files
committed
[Gate Tests] - marking feature tests
Removal of the lang feature gate tests whitelist rust-lang#39059 r? @est31
1 parent 3ddc270 commit ddb6027

7 files changed

+13
-4
lines changed

src/test/compile-fail/attr-literals.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
// Check that literals in attributes parse just fine.
1212

13+
// gate-test-custom_attribute
14+
1315
#![feature(rustc_attrs, attr_literals)]
1416
#![allow(dead_code)]
1517
#![allow(unused_variables)]

src/test/compile-fail/attr-on-generic-formals-are-visited.rs

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// checking feature-gating of the attributes themselves, not the
1616
// capability to parse such attributes in that context.
1717

18+
// gate-test-custom_attribute
19+
1820
#![feature(generic_param_attrs)]
1921
#![allow(dead_code)]
2022

src/test/compile-fail/gated-attr-literals.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// Check that literals in attributes don't parse without the feature gate.
1212

1313
// gate-test-attr_literals
14+
// gate-test-custom_attribute
1415

1516
#![feature(rustc_attrs)]
1617
#![allow(dead_code)]

src/test/compile-fail/macro-with-seps-err-msg.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// gate-test-use_extern_macros
12+
1113
fn main() {
1214
globnar::brotz!(); //~ ERROR non-ident macro paths are experimental
1315
::foo!(); //~ ERROR non-ident macro paths are experimental

src/test/compile-fail/struct-path-self-feature-gate.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// gate-test-more_struct_aliases
12+
1113
struct S;
1214

1315
trait Tr {

src/test/compile-fail/type-parameter-invalid-lint.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// gate-test-default_type_parameter_fallback
12+
1113
#![deny(future_incompatible)]
1214
#![allow(dead_code)]
1315

src/tools/tidy/src/features.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,8 @@ pub fn check(path: &Path, bad: &mut bool) {
166166
// FIXME get this whitelist empty.
167167
let whitelist = vec![
168168
"abi_ptx", "simd", "macro_reexport",
169-
"more_struct_aliases", "static_recursion", "reflect",
170-
"quote", "cfg_target_has_atomic", "custom_attribute",
171-
"default_type_parameter_fallback",
172-
"use_extern_macros", "staged_api", "const_indexing",
169+
"static_recursion", "reflect", "quote",
170+
"cfg_target_has_atomic", "staged_api", "const_indexing",
173171
"unboxed_closures", "stmt_expr_attributes",
174172
"cfg_target_thread_local", "unwind_attributes",
175173
"inclusive_range_syntax", "proc_macro"

0 commit comments

Comments
 (0)