Add gate-test- to some already existing tests
This commit is contained in:
parent
a13cecacb4
commit
0bcd3b2e79
5 changed files with 9 additions and 1 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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() {}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {}. ",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue