Skip to content

Commit 6a29fab

Browse files
committed
Mark even more tests as gate tests
Now, no feature outside of the whitelist is without a test marked as its gate test.
1 parent 4045729 commit 6a29fab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+96
-0
lines changed

src/test/compile-fail/asm-gated.rs

Lines changed: 2 additions & 0 deletions
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-asm
12+
1113
fn main() {
1214
unsafe {
1315
asm!(""); //~ ERROR inline assembly is not stable enough

src/test/compile-fail/asm-gated2.rs

Lines changed: 2 additions & 0 deletions
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-asm
12+
1113
fn main() {
1214
unsafe {
1315
println!("{}", asm!("")); //~ ERROR inline assembly is not stable

src/test/compile-fail/attr-on-generic-formals-wo-feature-gate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// using `rustc_attrs` feature. There is a separate compile-fail/ test
1717
// ensuring that the attribute feature-gating works in this context.)
1818

19+
// gate-test-generic_param_attrs
20+
1921
#![feature(rustc_attrs)]
2022
#![allow(dead_code)]
2123

src/test/compile-fail/check-static-values-constraints.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
// Verifies all possible restrictions for statics values.
1212

13+
// gate-test-drop_types_in_const
14+
1315
#![feature(box_syntax)]
1416

1517
use std::marker;

src/test/compile-fail/concat_idents-gate.rs

Lines changed: 2 additions & 0 deletions
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-concat_idents
12+
1113
const XY_1: i32 = 10;
1214

1315
fn main() {

src/test/compile-fail/concat_idents-gate2.rs

Lines changed: 2 additions & 0 deletions
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-concat_idents
12+
1113
const XY_1: i32 = 10;
1214

1315
fn main() {

src/test/compile-fail/const-fn-stability.rs

Lines changed: 2 additions & 0 deletions
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-const_fn
12+
1113
// Test use of const fn without feature gate.
1214

1315
const fn foo() -> usize { 0 } //~ ERROR const fn is unstable

src/test/compile-fail/feature-gate-abi.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// gate-test-intrinsics
12+
// gate-test-platform_intrinsics
13+
// gate-test-abi_vectorcall
14+
1115
// Functions
1216
extern "rust-intrinsic" fn f1() {} //~ ERROR intrinsics are subject to change
1317
extern "platform-intrinsic" fn f2() {} //~ ERROR platform intrinsics are experimental

src/test/compile-fail/feature-gate-advanced-slice-features.rs

Lines changed: 2 additions & 0 deletions
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-advanced_slice_patterns
12+
1113
#![feature(slice_patterns)]
1214

1315
fn main() {

src/test/compile-fail/feature-gate-allow-internal-unstable-nested-macro.rs

Lines changed: 2 additions & 0 deletions
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-allow_internal_unstable
12+
1113
macro_rules! bar {
1214
() => {
1315
// more layers don't help:

0 commit comments

Comments
 (0)