Skip to content

Commit 0bcd3b2

Browse files
committed
Add gate-test- to some already existing tests
1 parent a13ceca commit 0bcd3b2

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

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

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

1111
// Check that literals in attributes don't parse without the feature gate.
1212

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

src/test/compile-fail/gated-naked_functions.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-naked_functions
12+
1113
#[naked]
1214
//~^ the `#[naked]` attribute is an experimental feature
1315
fn naked() {}

src/test/compile-fail/never-disabled.rs

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

1111
// Test that ! errors when used in illegal positions with feature(never_type) disabled
1212

13+
// gate-test-never_type
14+
1315
trait Foo {
1416
type Wub;
1517
}

src/test/compile-fail/unadjusted-unstable.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-abi_unadjusted
12+
1113
extern "unadjusted" fn foo() {
1214
//~^ ERROR: unadjusted ABI is an implementation detail and perma-unstable
1315
}

src/tools/tidy/src/features.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub fn check(path: &Path, bad: &mut bool) {
166166
.count();
167167

168168
// FIXME get this number down to zero.
169-
let gate_untested_expected = 98;
169+
let gate_untested_expected = 94;
170170

171171
if gate_untested != gate_untested_expected {
172172
print!("Expected {} gate untested features, but found {}. ",

0 commit comments

Comments
 (0)