Add gate-test- to some already existing tests

This commit is contained in:
est31 2017-01-08 03:57:27 +01:00
parent a13cecacb4
commit 0bcd3b2e79
5 changed files with 9 additions and 1 deletions

View file

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

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// gate-test-naked_functions
#[naked]
//~^ the `#[naked]` attribute is an experimental feature
fn naked() {}

View file

@ -10,6 +10,8 @@
// Test that ! errors when used in illegal positions with feature(never_type) disabled
// gate-test-never_type
trait Foo {
type Wub;
}

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// gate-test-abi_unadjusted
extern "unadjusted" fn foo() {
//~^ ERROR: unadjusted ABI is an implementation detail and perma-unstable
}

View file

@ -166,7 +166,7 @@ pub fn check(path: &Path, bad: &mut bool) {
.count();
// FIXME get this number down to zero.
let gate_untested_expected = 98;
let gate_untested_expected = 94;
if gate_untested != gate_untested_expected {
print!("Expected {} gate untested features, but found {}. ",