Auto merge of #46532 - est31:master, r=est31
Allow feature-gate tests to live in ui/ and migrate most of the tests from compile-fail The PR consists of three commits: 1. change tidy to allow feature-gate tests to live in ui/ 2. migrate some feature gate tests to ui/ with renaming only 3. migrate some feature gate tests to ui/ with also removing `// gate-test-...` lines and renaming them to the standard `feature-gate-<feat-name>.rs` format.
This commit is contained in:
commit
9c49f401fe
277 changed files with 4534 additions and 73 deletions
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// gate-test-no_core
|
||||
|
||||
#![no_core] //~ ERROR no_core is experimental
|
||||
|
||||
fn main() {}
|
10
src/test/ui/feature-gate-abi-msp430-interrupt.stderr
Normal file
10
src/test/ui/feature-gate-abi-msp430-interrupt.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
|
||||
--> $DIR/feature-gate-abi-msp430-interrupt.rs:14:1
|
||||
|
|
||||
14 | extern "msp430-interrupt" fn foo() {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
450
src/test/ui/feature-gate-abi.stderr
Normal file
450
src/test/ui/feature-gate-abi.stderr
Normal file
|
@ -0,0 +1,450 @@
|
|||
error: intrinsics are subject to change
|
||||
--> $DIR/feature-gate-abi.rs:19:1
|
||||
|
|
||||
19 | extern "rust-intrinsic" fn f1() {} //~ ERROR intrinsics are subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: platform intrinsics are experimental and possibly buggy (see issue #27731)
|
||||
--> $DIR/feature-gate-abi.rs:20:1
|
||||
|
|
||||
20 | extern "platform-intrinsic" fn f2() {} //~ ERROR platform intrinsics are experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(platform_intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: vectorcall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:21:1
|
||||
|
|
||||
21 | extern "vectorcall" fn f3() {} //~ ERROR vectorcall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_vectorcall)] to the crate attributes to enable
|
||||
|
||||
error: rust-call ABI is subject to change (see issue #29625)
|
||||
--> $DIR/feature-gate-abi.rs:22:1
|
||||
|
|
||||
22 | extern "rust-call" fn f4() {} //~ ERROR rust-call ABI is subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(unboxed_closures)] to the crate attributes to enable
|
||||
|
||||
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
|
||||
--> $DIR/feature-gate-abi.rs:23:1
|
||||
|
|
||||
23 | extern "msp430-interrupt" fn f5() {} //~ ERROR msp430-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: PTX ABIs are experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:24:1
|
||||
|
|
||||
24 | extern "ptx-kernel" fn f6() {} //~ ERROR PTX ABIs are experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_ptx)] to the crate attributes to enable
|
||||
|
||||
error: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
||||
--> $DIR/feature-gate-abi.rs:25:1
|
||||
|
|
||||
25 | extern "x86-interrupt" fn f7() {} //~ ERROR x86-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: thiscall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:26:1
|
||||
|
|
||||
26 | extern "thiscall" fn f8() {} //~ ERROR thiscall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_thiscall)] to the crate attributes to enable
|
||||
|
||||
error: intrinsics are subject to change
|
||||
--> $DIR/feature-gate-abi.rs:30:5
|
||||
|
|
||||
30 | extern "rust-intrinsic" fn m1(); //~ ERROR intrinsics are subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: platform intrinsics are experimental and possibly buggy (see issue #27731)
|
||||
--> $DIR/feature-gate-abi.rs:31:5
|
||||
|
|
||||
31 | extern "platform-intrinsic" fn m2(); //~ ERROR platform intrinsics are experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(platform_intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: vectorcall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:32:5
|
||||
|
|
||||
32 | extern "vectorcall" fn m3(); //~ ERROR vectorcall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_vectorcall)] to the crate attributes to enable
|
||||
|
||||
error: rust-call ABI is subject to change (see issue #29625)
|
||||
--> $DIR/feature-gate-abi.rs:33:5
|
||||
|
|
||||
33 | extern "rust-call" fn m4(); //~ ERROR rust-call ABI is subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(unboxed_closures)] to the crate attributes to enable
|
||||
|
||||
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
|
||||
--> $DIR/feature-gate-abi.rs:34:5
|
||||
|
|
||||
34 | extern "msp430-interrupt" fn m5(); //~ ERROR msp430-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: PTX ABIs are experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:35:5
|
||||
|
|
||||
35 | extern "ptx-kernel" fn m6(); //~ ERROR PTX ABIs are experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_ptx)] to the crate attributes to enable
|
||||
|
||||
error: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
||||
--> $DIR/feature-gate-abi.rs:36:5
|
||||
|
|
||||
36 | extern "x86-interrupt" fn m7(); //~ ERROR x86-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: thiscall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:37:5
|
||||
|
|
||||
37 | extern "thiscall" fn m8(); //~ ERROR thiscall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_thiscall)] to the crate attributes to enable
|
||||
|
||||
error: intrinsics are subject to change
|
||||
--> $DIR/feature-gate-abi.rs:39:5
|
||||
|
|
||||
39 | extern "rust-intrinsic" fn dm1() {} //~ ERROR intrinsics are subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: platform intrinsics are experimental and possibly buggy (see issue #27731)
|
||||
--> $DIR/feature-gate-abi.rs:40:5
|
||||
|
|
||||
40 | extern "platform-intrinsic" fn dm2() {} //~ ERROR platform intrinsics are experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(platform_intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: vectorcall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:41:5
|
||||
|
|
||||
41 | extern "vectorcall" fn dm3() {} //~ ERROR vectorcall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_vectorcall)] to the crate attributes to enable
|
||||
|
||||
error: rust-call ABI is subject to change (see issue #29625)
|
||||
--> $DIR/feature-gate-abi.rs:42:5
|
||||
|
|
||||
42 | extern "rust-call" fn dm4() {} //~ ERROR rust-call ABI is subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(unboxed_closures)] to the crate attributes to enable
|
||||
|
||||
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
|
||||
--> $DIR/feature-gate-abi.rs:43:5
|
||||
|
|
||||
43 | extern "msp430-interrupt" fn dm5() {} //~ ERROR msp430-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: PTX ABIs are experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:44:5
|
||||
|
|
||||
44 | extern "ptx-kernel" fn dm6() {} //~ ERROR PTX ABIs are experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_ptx)] to the crate attributes to enable
|
||||
|
||||
error: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
||||
--> $DIR/feature-gate-abi.rs:45:5
|
||||
|
|
||||
45 | extern "x86-interrupt" fn dm7() {} //~ ERROR x86-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: thiscall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:46:5
|
||||
|
|
||||
46 | extern "thiscall" fn dm8() {} //~ ERROR thiscall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_thiscall)] to the crate attributes to enable
|
||||
|
||||
error: intrinsics are subject to change
|
||||
--> $DIR/feature-gate-abi.rs:53:5
|
||||
|
|
||||
53 | extern "rust-intrinsic" fn m1() {} //~ ERROR intrinsics are subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: platform intrinsics are experimental and possibly buggy (see issue #27731)
|
||||
--> $DIR/feature-gate-abi.rs:54:5
|
||||
|
|
||||
54 | extern "platform-intrinsic" fn m2() {} //~ ERROR platform intrinsics are experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(platform_intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: vectorcall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:55:5
|
||||
|
|
||||
55 | extern "vectorcall" fn m3() {} //~ ERROR vectorcall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_vectorcall)] to the crate attributes to enable
|
||||
|
||||
error: rust-call ABI is subject to change (see issue #29625)
|
||||
--> $DIR/feature-gate-abi.rs:56:5
|
||||
|
|
||||
56 | extern "rust-call" fn m4() {} //~ ERROR rust-call ABI is subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(unboxed_closures)] to the crate attributes to enable
|
||||
|
||||
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
|
||||
--> $DIR/feature-gate-abi.rs:57:5
|
||||
|
|
||||
57 | extern "msp430-interrupt" fn m5() {} //~ ERROR msp430-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: PTX ABIs are experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:58:5
|
||||
|
|
||||
58 | extern "ptx-kernel" fn m6() {} //~ ERROR PTX ABIs are experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_ptx)] to the crate attributes to enable
|
||||
|
||||
error: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
||||
--> $DIR/feature-gate-abi.rs:59:5
|
||||
|
|
||||
59 | extern "x86-interrupt" fn m7() {} //~ ERROR x86-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: thiscall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:60:5
|
||||
|
|
||||
60 | extern "thiscall" fn m8() {} //~ ERROR thiscall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_thiscall)] to the crate attributes to enable
|
||||
|
||||
error: intrinsics are subject to change
|
||||
--> $DIR/feature-gate-abi.rs:65:5
|
||||
|
|
||||
65 | extern "rust-intrinsic" fn im1() {} //~ ERROR intrinsics are subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: platform intrinsics are experimental and possibly buggy (see issue #27731)
|
||||
--> $DIR/feature-gate-abi.rs:66:5
|
||||
|
|
||||
66 | extern "platform-intrinsic" fn im2() {} //~ ERROR platform intrinsics are experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(platform_intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: vectorcall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:67:5
|
||||
|
|
||||
67 | extern "vectorcall" fn im3() {} //~ ERROR vectorcall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_vectorcall)] to the crate attributes to enable
|
||||
|
||||
error: rust-call ABI is subject to change (see issue #29625)
|
||||
--> $DIR/feature-gate-abi.rs:68:5
|
||||
|
|
||||
68 | extern "rust-call" fn im4() {} //~ ERROR rust-call ABI is subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(unboxed_closures)] to the crate attributes to enable
|
||||
|
||||
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
|
||||
--> $DIR/feature-gate-abi.rs:69:5
|
||||
|
|
||||
69 | extern "msp430-interrupt" fn im5() {} //~ ERROR msp430-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: PTX ABIs are experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:70:5
|
||||
|
|
||||
70 | extern "ptx-kernel" fn im6() {} //~ ERROR PTX ABIs are experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_ptx)] to the crate attributes to enable
|
||||
|
||||
error: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
||||
--> $DIR/feature-gate-abi.rs:71:5
|
||||
|
|
||||
71 | extern "x86-interrupt" fn im7() {} //~ ERROR x86-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: thiscall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:72:5
|
||||
|
|
||||
72 | extern "thiscall" fn im8() {} //~ ERROR thiscall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_thiscall)] to the crate attributes to enable
|
||||
|
||||
error: intrinsics are subject to change
|
||||
--> $DIR/feature-gate-abi.rs:76:11
|
||||
|
|
||||
76 | type A1 = extern "rust-intrinsic" fn(); //~ ERROR intrinsics are subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: platform intrinsics are experimental and possibly buggy (see issue #27731)
|
||||
--> $DIR/feature-gate-abi.rs:77:11
|
||||
|
|
||||
77 | type A2 = extern "platform-intrinsic" fn(); //~ ERROR platform intrinsics are experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(platform_intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: vectorcall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:78:11
|
||||
|
|
||||
78 | type A3 = extern "vectorcall" fn(); //~ ERROR vectorcall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_vectorcall)] to the crate attributes to enable
|
||||
|
||||
error: rust-call ABI is subject to change (see issue #29625)
|
||||
--> $DIR/feature-gate-abi.rs:79:11
|
||||
|
|
||||
79 | type A4 = extern "rust-call" fn(); //~ ERROR rust-call ABI is subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(unboxed_closures)] to the crate attributes to enable
|
||||
|
||||
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
|
||||
--> $DIR/feature-gate-abi.rs:80:11
|
||||
|
|
||||
80 | type A5 = extern "msp430-interrupt" fn(); //~ ERROR msp430-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: PTX ABIs are experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:81:11
|
||||
|
|
||||
81 | type A6 = extern "ptx-kernel" fn (); //~ ERROR PTX ABIs are experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_ptx)] to the crate attributes to enable
|
||||
|
||||
error: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
||||
--> $DIR/feature-gate-abi.rs:82:11
|
||||
|
|
||||
82 | type A7 = extern "x86-interrupt" fn(); //~ ERROR x86-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: thiscall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:83:11
|
||||
|
|
||||
83 | type A8 = extern "thiscall" fn(); //~ ERROR thiscall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_thiscall)] to the crate attributes to enable
|
||||
|
||||
error: intrinsics are subject to change
|
||||
--> $DIR/feature-gate-abi.rs:86:1
|
||||
|
|
||||
86 | extern "rust-intrinsic" {} //~ ERROR intrinsics are subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: platform intrinsics are experimental and possibly buggy (see issue #27731)
|
||||
--> $DIR/feature-gate-abi.rs:87:1
|
||||
|
|
||||
87 | extern "platform-intrinsic" {} //~ ERROR platform intrinsics are experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(platform_intrinsics)] to the crate attributes to enable
|
||||
|
||||
error: vectorcall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:88:1
|
||||
|
|
||||
88 | extern "vectorcall" {} //~ ERROR vectorcall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_vectorcall)] to the crate attributes to enable
|
||||
|
||||
error: rust-call ABI is subject to change (see issue #29625)
|
||||
--> $DIR/feature-gate-abi.rs:89:1
|
||||
|
|
||||
89 | extern "rust-call" {} //~ ERROR rust-call ABI is subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(unboxed_closures)] to the crate attributes to enable
|
||||
|
||||
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
|
||||
--> $DIR/feature-gate-abi.rs:90:1
|
||||
|
|
||||
90 | extern "msp430-interrupt" {} //~ ERROR msp430-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: PTX ABIs are experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:91:1
|
||||
|
|
||||
91 | extern "ptx-kernel" {} //~ ERROR PTX ABIs are experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_ptx)] to the crate attributes to enable
|
||||
|
||||
error: x86-interrupt ABI is experimental and subject to change (see issue #40180)
|
||||
--> $DIR/feature-gate-abi.rs:92:1
|
||||
|
|
||||
92 | extern "x86-interrupt" {} //~ ERROR x86-interrupt ABI is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_x86_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: thiscall is experimental and subject to change
|
||||
--> $DIR/feature-gate-abi.rs:93:1
|
||||
|
|
||||
93 | extern "thiscall" {} //~ ERROR thiscall is experimental and subject to change
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_thiscall)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 56 previous errors
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
// 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
|
||||
}
|
12
src/test/ui/feature-gate-abi_unadjusted.stderr
Normal file
12
src/test/ui/feature-gate-abi_unadjusted.stderr
Normal file
|
@ -0,0 +1,12 @@
|
|||
error: unadjusted ABI is an implementation detail and perma-unstable
|
||||
--> $DIR/feature-gate-abi_unadjusted.rs:11:1
|
||||
|
|
||||
11 | / extern "unadjusted" fn foo() {
|
||||
12 | | //~^ ERROR: unadjusted ABI is an implementation detail and perma-unstable
|
||||
13 | | }
|
||||
| |_^
|
||||
|
|
||||
= help: add #![feature(abi_unadjusted)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
18
src/test/ui/feature-gate-advanced-slice-features.stderr
Normal file
18
src/test/ui/feature-gate-advanced-slice-features.stderr
Normal file
|
@ -0,0 +1,18 @@
|
|||
error: multiple-element slice matches anywhere but at the end of a slice (e.g. `[0, ..xs, 0]`) are experimental (see issue #23121)
|
||||
--> $DIR/feature-gate-advanced-slice-features.rs:18:9
|
||||
|
|
||||
18 | [ xs.., 4, 5 ] => {} //~ ERROR multiple-element slice matches
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(advanced_slice_patterns)] to the crate attributes to enable
|
||||
|
||||
error: multiple-element slice matches anywhere but at the end of a slice (e.g. `[0, ..xs, 0]`) are experimental (see issue #23121)
|
||||
--> $DIR/feature-gate-advanced-slice-features.rs:19:9
|
||||
|
|
||||
19 | [ 1, xs.., 5 ] => {} //~ ERROR multiple-element slice matches
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(advanced_slice_patterns)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
10
src/test/ui/feature-gate-allocator_internals.stderr
Normal file
10
src/test/ui/feature-gate-allocator_internals.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: the `#[default_lib_allocator]` attribute is an experimental feature
|
||||
--> $DIR/feature-gate-allocator_internals.rs:11:1
|
||||
|
|
||||
11 | #![default_lib_allocator] //~ ERROR: attribute is an experimental feature
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(allocator_internals)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
error: allow_internal_unsafe side-steps the unsafe_code lint
|
||||
--> $DIR/feature-gate-allow-internal-unsafe-nested-macro.rs:18:9
|
||||
|
|
||||
18 | #[allow_internal_unsafe] //~ ERROR allow_internal_unsafe side-steps
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
...
|
||||
25 | bar!();
|
||||
| ------- in this macro invocation
|
||||
|
|
||||
= help: add #![feature(allow_internal_unsafe)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
error: allow_internal_unstable side-steps feature gating and stability checks
|
||||
--> $DIR/feature-gate-allow-internal-unstable-nested-macro.rs:18:9
|
||||
|
|
||||
18 | #[allow_internal_unstable] //~ ERROR allow_internal_unstable side-steps
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
...
|
||||
25 | bar!();
|
||||
| ------- in this macro invocation
|
||||
|
|
||||
= help: add #![feature(allow_internal_unstable)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
error: allow_internal_unstable side-steps feature gating and stability checks
|
||||
--> $DIR/feature-gate-allow-internal-unstable-struct.rs:14:1
|
||||
|
|
||||
14 | #[allow_internal_unstable] //~ ERROR allow_internal_unstable side-steps
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(allow_internal_unstable)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-allow-internal-unstable.stderr
Normal file
10
src/test/ui/feature-gate-allow-internal-unstable.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: allow_internal_unstable side-steps feature gating and stability checks
|
||||
--> $DIR/feature-gate-allow-internal-unstable.rs:13:1
|
||||
|
|
||||
13 | #[allow_internal_unstable] //~ ERROR allow_internal_unstable side-steps
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(allow_internal_unstable)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-allow_fail.stderr
Normal file
10
src/test/ui/feature-gate-allow_fail.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: allow_fail attribute is currently unstable (see issue #42219)
|
||||
--> $DIR/feature-gate-allow_fail.rs:13:1
|
||||
|
|
||||
13 | #[allow_fail] //~ ERROR allow_fail attribute is currently unstable
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(allow_fail)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
29
src/test/ui/feature-gate-arbitrary-self-types.stderr
Normal file
29
src/test/ui/feature-gate-arbitrary-self-types.stderr
Normal file
|
@ -0,0 +1,29 @@
|
|||
error: arbitrary `self` types are unstable (see issue #44874)
|
||||
--> $DIR/feature-gate-arbitrary-self-types.rs:14:18
|
||||
|
|
||||
14 | fn foo(self: Rc<Box<Self>>); //~ ERROR arbitrary `self` types are unstable
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(arbitrary_self_types)] to the crate attributes to enable
|
||||
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
|
||||
|
||||
error: arbitrary `self` types are unstable (see issue #44874)
|
||||
--> $DIR/feature-gate-arbitrary-self-types.rs:20:18
|
||||
|
|
||||
20 | fn foo(self: Rc<Box<Self>>) {} //~ ERROR arbitrary `self` types are unstable
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(arbitrary_self_types)] to the crate attributes to enable
|
||||
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
|
||||
|
||||
error: arbitrary `self` types are unstable (see issue #44874)
|
||||
--> $DIR/feature-gate-arbitrary-self-types.rs:24:18
|
||||
|
|
||||
24 | fn bar(self: Box<Rc<Self>>) {} //~ ERROR arbitrary `self` types are unstable
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(arbitrary_self_types)] to the crate attributes to enable
|
||||
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// gate-test-asm
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
asm!(""); //~ ERROR inline assembly is not stable enough
|
10
src/test/ui/feature-gate-asm.stderr
Normal file
10
src/test/ui/feature-gate-asm.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: inline assembly is not stable enough for use and is subject to change (see issue #29722)
|
||||
--> $DIR/feature-gate-asm.rs:13:9
|
||||
|
|
||||
13 | asm!(""); //~ ERROR inline assembly is not stable enough
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(asm)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-asm2.stderr
Normal file
10
src/test/ui/feature-gate-asm2.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: inline assembly is not stable enough for use and is subject to change (see issue #29722)
|
||||
--> $DIR/feature-gate-asm2.rs:15:24
|
||||
|
|
||||
15 | println!("{}", asm!("")); //~ ERROR inline assembly is not stable
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(asm)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-assoc-type-defaults.stderr
Normal file
10
src/test/ui/feature-gate-assoc-type-defaults.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: associated type defaults are unstable (see issue #29661)
|
||||
--> $DIR/feature-gate-assoc-type-defaults.rs:14:5
|
||||
|
|
||||
14 | type Bar = u8; //~ ERROR associated type defaults are unstable
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(associated_type_defaults)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-box-expr.stderr
Normal file
10
src/test/ui/feature-gate-box-expr.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: box expression syntax is experimental; you can call `Box::new` instead. (see issue #27779)
|
||||
--> $DIR/feature-gate-box-expr.rs:22:13
|
||||
|
|
||||
22 | let x = box 'c'; //~ ERROR box expression syntax is experimental
|
||||
| ^^^^^^^
|
||||
|
|
||||
= help: add #![feature(box_syntax)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// gate-test-box_patterns
|
||||
|
||||
fn main() {
|
||||
let box x = Box::new('c'); //~ ERROR box pattern syntax is experimental
|
||||
println!("x: {}", x);
|
10
src/test/ui/feature-gate-box_patterns.stderr
Normal file
10
src/test/ui/feature-gate-box_patterns.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: box pattern syntax is experimental (see issue #29641)
|
||||
--> $DIR/feature-gate-box_patterns.rs:12:9
|
||||
|
|
||||
12 | let box x = Box::new('c'); //~ ERROR box pattern syntax is experimental
|
||||
| ^^^^^
|
||||
|
|
||||
= help: add #![feature(box_patterns)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// Test that the use of the box syntax is gated by `box_syntax` feature gate.
|
||||
|
||||
// gate-test-box_syntax
|
||||
|
||||
fn main() {
|
||||
let x = box 3;
|
||||
//~^ ERROR box expression syntax is experimental; you can call `Box::new` instead.
|
10
src/test/ui/feature-gate-box_syntax.stderr
Normal file
10
src/test/ui/feature-gate-box_syntax.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: box expression syntax is experimental; you can call `Box::new` instead. (see issue #27779)
|
||||
--> $DIR/feature-gate-box_syntax.rs:14:13
|
||||
|
|
||||
14 | let x = box 3;
|
||||
| ^^^^^
|
||||
|
|
||||
= help: add #![feature(box_syntax)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
14
src/test/ui/feature-gate-catch_expr.stderr
Normal file
14
src/test/ui/feature-gate-catch_expr.stderr
Normal file
|
@ -0,0 +1,14 @@
|
|||
error: `catch` expression is experimental (see issue #31436)
|
||||
--> $DIR/feature-gate-catch_expr.rs:12:24
|
||||
|
|
||||
12 | let catch_result = do catch { //~ ERROR `catch` expression is experimental
|
||||
| ________________________^
|
||||
13 | | let x = 5;
|
||||
14 | | x
|
||||
15 | | };
|
||||
| |_____^
|
||||
|
|
||||
= help: add #![feature(catch_expr)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
34
src/test/ui/feature-gate-cfg-target-feature.stderr
Normal file
34
src/test/ui/feature-gate-cfg-target-feature.stderr
Normal file
|
@ -0,0 +1,34 @@
|
|||
error: `cfg(target_feature)` is experimental and subject to change (see issue #29717)
|
||||
--> $DIR/feature-gate-cfg-target-feature.rs:12:12
|
||||
|
|
||||
12 | #[cfg_attr(target_feature = "x", x)] //~ ERROR `cfg(target_feature)` is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_feature)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_feature)` is experimental and subject to change (see issue #29717)
|
||||
--> $DIR/feature-gate-cfg-target-feature.rs:11:7
|
||||
|
|
||||
11 | #[cfg(target_feature = "x")] //~ ERROR `cfg(target_feature)` is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_feature)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_feature)` is experimental and subject to change (see issue #29717)
|
||||
--> $DIR/feature-gate-cfg-target-feature.rs:15:19
|
||||
|
|
||||
15 | #[cfg(not(any(all(target_feature = "x"))))] //~ ERROR `cfg(target_feature)` is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_feature)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_feature)` is experimental and subject to change (see issue #29717)
|
||||
--> $DIR/feature-gate-cfg-target-feature.rs:19:10
|
||||
|
|
||||
19 | cfg!(target_feature = "x");
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_feature)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
122
src/test/ui/feature-gate-cfg-target-has-atomic.stderr
Normal file
122
src/test/ui/feature-gate-cfg-target-has-atomic.stderr
Normal file
|
@ -0,0 +1,122 @@
|
|||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:23:7
|
||||
|
|
||||
23 | #[cfg(target_has_atomic = "8")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:29:7
|
||||
|
|
||||
29 | #[cfg(target_has_atomic = "8")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:34:7
|
||||
|
|
||||
34 | #[cfg(target_has_atomic = "16")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:39:7
|
||||
|
|
||||
39 | #[cfg(target_has_atomic = "16")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:44:7
|
||||
|
|
||||
44 | #[cfg(target_has_atomic = "32")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:49:7
|
||||
|
|
||||
49 | #[cfg(target_has_atomic = "32")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:54:7
|
||||
|
|
||||
54 | #[cfg(target_has_atomic = "64")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:59:7
|
||||
|
|
||||
59 | #[cfg(target_has_atomic = "64")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:64:7
|
||||
|
|
||||
64 | #[cfg(target_has_atomic = "ptr")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:69:7
|
||||
|
|
||||
69 | #[cfg(target_has_atomic = "ptr")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:76:10
|
||||
|
|
||||
76 | cfg!(target_has_atomic = "8");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:78:10
|
||||
|
|
||||
78 | cfg!(target_has_atomic = "16");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:80:10
|
||||
|
|
||||
80 | cfg!(target_has_atomic = "32");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:82:10
|
||||
|
|
||||
82 | cfg!(target_has_atomic = "64");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
|
||||
--> $DIR/feature-gate-cfg-target-has-atomic.rs:84:10
|
||||
|
|
||||
84 | cfg!(target_has_atomic = "ptr");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 15 previous errors
|
||||
|
10
src/test/ui/feature-gate-cfg-target-thread-local.stderr
Normal file
10
src/test/ui/feature-gate-cfg-target-thread-local.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: `cfg(target_thread_local)` is experimental and subject to change (see issue #29594)
|
||||
--> $DIR/feature-gate-cfg-target-thread-local.rs:19:16
|
||||
|
|
||||
19 | #[cfg_attr(target_thread_local, thread_local)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_thread_local)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
34
src/test/ui/feature-gate-cfg-target-vendor.stderr
Normal file
34
src/test/ui/feature-gate-cfg-target-vendor.stderr
Normal file
|
@ -0,0 +1,34 @@
|
|||
error: `cfg(target_vendor)` is experimental and subject to change (see issue #29718)
|
||||
--> $DIR/feature-gate-cfg-target-vendor.rs:12:12
|
||||
|
|
||||
12 | #[cfg_attr(target_vendor = "x", x)] //~ ERROR `cfg(target_vendor)` is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_vendor)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_vendor)` is experimental and subject to change (see issue #29718)
|
||||
--> $DIR/feature-gate-cfg-target-vendor.rs:11:7
|
||||
|
|
||||
11 | #[cfg(target_vendor = "x")] //~ ERROR `cfg(target_vendor)` is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_vendor)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_vendor)` is experimental and subject to change (see issue #29718)
|
||||
--> $DIR/feature-gate-cfg-target-vendor.rs:15:19
|
||||
|
|
||||
15 | #[cfg(not(any(all(target_vendor = "x"))))] //~ ERROR `cfg(target_vendor)` is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_vendor)] to the crate attributes to enable
|
||||
|
||||
error: `cfg(target_vendor)` is experimental and subject to change (see issue #29718)
|
||||
--> $DIR/feature-gate-cfg-target-vendor.rs:19:10
|
||||
|
|
||||
19 | cfg!(target_vendor = "x");
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(cfg_target_vendor)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
10
src/test/ui/feature-gate-clone-closures.stderr
Normal file
10
src/test/ui/feature-gate-clone-closures.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error[E0599]: no method named `clone` found for type `[closure@$DIR/feature-gate-clone-closures.rs:16:17: 18:6 a:_]` in the current scope
|
||||
--> $DIR/feature-gate-clone-closures.rs:20:23
|
||||
|
|
||||
20 | let hello = hello.clone(); //~ ERROR no method named `clone` found for type
|
||||
| ^^^^^
|
||||
|
|
||||
= note: hello is a function, perhaps you wish to call it
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-compiler-builtins.stderr
Normal file
10
src/test/ui/feature-gate-compiler-builtins.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: the `#[compiler_builtins]` attribute is used to identify the `compiler_builtins` crate which contains compiler-rt intrinsics and will never be stable
|
||||
--> $DIR/feature-gate-compiler-builtins.rs:11:1
|
||||
|
|
||||
11 | #![compiler_builtins] //~ ERROR the `#[compiler_builtins]` attribute is
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(compiler_builtins)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// gate-test-concat_idents
|
||||
|
||||
const XY_1: i32 = 10;
|
||||
|
||||
fn main() {
|
18
src/test/ui/feature-gate-concat_idents.stderr
Normal file
18
src/test/ui/feature-gate-concat_idents.stderr
Normal file
|
@ -0,0 +1,18 @@
|
|||
error: `concat_idents` is not stable enough for use and is subject to change (see issue #29599)
|
||||
--> $DIR/feature-gate-concat_idents.rs:15:13
|
||||
|
|
||||
15 | let a = concat_idents!(X, Y_1); //~ ERROR `concat_idents` is not stable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(concat_idents)] to the crate attributes to enable
|
||||
|
||||
error: `concat_idents` is not stable enough for use and is subject to change (see issue #29599)
|
||||
--> $DIR/feature-gate-concat_idents.rs:16:13
|
||||
|
|
||||
16 | let b = concat_idents!(X, Y_2); //~ ERROR `concat_idents` is not stable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(concat_idents)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
10
src/test/ui/feature-gate-concat_idents2.stderr
Normal file
10
src/test/ui/feature-gate-concat_idents2.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: `concat_idents` is not stable enough for use and is subject to change (see issue #29599)
|
||||
--> $DIR/feature-gate-concat_idents2.rs:14:5
|
||||
|
|
||||
14 | concat_idents!(a, b); //~ ERROR `concat_idents` is not stable enough
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(concat_idents)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
18
src/test/ui/feature-gate-concat_idents3.stderr
Normal file
18
src/test/ui/feature-gate-concat_idents3.stderr
Normal file
|
@ -0,0 +1,18 @@
|
|||
error: `concat_idents` is not stable enough for use and is subject to change (see issue #29599)
|
||||
--> $DIR/feature-gate-concat_idents3.rs:17:20
|
||||
|
|
||||
17 | assert_eq!(10, concat_idents!(X, Y_1)); //~ ERROR `concat_idents` is not stable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(concat_idents)] to the crate attributes to enable
|
||||
|
||||
error: `concat_idents` is not stable enough for use and is subject to change (see issue #29599)
|
||||
--> $DIR/feature-gate-concat_idents3.rs:18:20
|
||||
|
|
||||
18 | assert_eq!(20, concat_idents!(X, Y_2)); //~ ERROR `concat_idents` is not stable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(concat_idents)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// gate-test-conservative_impl_trait
|
||||
|
||||
fn foo() -> impl Fn() { || {} }
|
||||
//~^ ERROR `impl Trait` in return position is experimental
|
||||
|
10
src/test/ui/feature-gate-conservative_impl_trait.stderr
Normal file
10
src/test/ui/feature-gate-conservative_impl_trait.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: `impl Trait` in return position is experimental (see issue #34511)
|
||||
--> $DIR/feature-gate-conservative_impl_trait.rs:11:13
|
||||
|
|
||||
11 | fn foo() -> impl Fn() { || {} }
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(conservative_impl_trait)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
8
src/test/ui/feature-gate-const-indexing.stderr
Normal file
8
src/test/ui/feature-gate-const-indexing.stderr
Normal file
|
@ -0,0 +1,8 @@
|
|||
error[E0080]: constant evaluation error
|
||||
--> $DIR/feature-gate-const-indexing.rs:16:24
|
||||
|
|
||||
16 | const BLUB: [i32; (ARR[0] - 41) as usize] = [5]; //~ ERROR constant evaluation error
|
||||
| ^^^^^^ the index operation on const values is unstable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// gate-test-const_fn
|
||||
|
||||
// Test use of const fn without feature gate.
|
||||
|
||||
const fn foo() -> usize { 0 } //~ ERROR const fn is unstable
|
60
src/test/ui/feature-gate-const_fn.stderr
Normal file
60
src/test/ui/feature-gate-const_fn.stderr
Normal file
|
@ -0,0 +1,60 @@
|
|||
error[E0379]: trait fns cannot be declared const
|
||||
--> $DIR/feature-gate-const_fn.rs:16:5
|
||||
|
|
||||
16 | const fn foo() -> u32; //~ ERROR const fn is unstable
|
||||
| ^^^^^ trait fns cannot be const
|
||||
|
||||
error[E0379]: trait fns cannot be declared const
|
||||
--> $DIR/feature-gate-const_fn.rs:18:5
|
||||
|
|
||||
18 | const fn bar() -> u32 { 0 } //~ ERROR const fn is unstable
|
||||
| ^^^^^ trait fns cannot be const
|
||||
|
||||
error[E0379]: trait fns cannot be declared const
|
||||
--> $DIR/feature-gate-const_fn.rs:27:5
|
||||
|
|
||||
27 | const fn foo() -> u32 { 0 } //~ ERROR const fn is unstable
|
||||
| ^^^^^ trait fns cannot be const
|
||||
|
||||
error: const fn is unstable (see issue #24111)
|
||||
--> $DIR/feature-gate-const_fn.rs:13:1
|
||||
|
|
||||
13 | const fn foo() -> usize { 0 } //~ ERROR const fn is unstable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(const_fn)] to the crate attributes to enable
|
||||
|
||||
error: const fn is unstable (see issue #24111)
|
||||
--> $DIR/feature-gate-const_fn.rs:16:5
|
||||
|
|
||||
16 | const fn foo() -> u32; //~ ERROR const fn is unstable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(const_fn)] to the crate attributes to enable
|
||||
|
||||
error: const fn is unstable (see issue #24111)
|
||||
--> $DIR/feature-gate-const_fn.rs:18:5
|
||||
|
|
||||
18 | const fn bar() -> u32 { 0 } //~ ERROR const fn is unstable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(const_fn)] to the crate attributes to enable
|
||||
|
||||
error: const fn is unstable (see issue #24111)
|
||||
--> $DIR/feature-gate-const_fn.rs:23:5
|
||||
|
|
||||
23 | const fn baz() -> u32 { 0 } //~ ERROR const fn is unstable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(const_fn)] to the crate attributes to enable
|
||||
|
||||
error: const fn is unstable (see issue #24111)
|
||||
--> $DIR/feature-gate-const_fn.rs:27:5
|
||||
|
|
||||
27 | const fn foo() -> u32 { 0 } //~ ERROR const fn is unstable
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(const_fn)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 8 previous errors
|
||||
|
12
src/test/ui/feature-gate-copy-closures.stderr
Normal file
12
src/test/ui/feature-gate-copy-closures.stderr
Normal file
|
@ -0,0 +1,12 @@
|
|||
error[E0382]: use of moved value: `hello`
|
||||
--> $DIR/feature-gate-copy-closures.rs:18:9
|
||||
|
|
||||
17 | let b = hello;
|
||||
| - value moved here
|
||||
18 | let c = hello; //~ ERROR use of moved value: `hello` [E0382]
|
||||
| ^ value used here after move
|
||||
|
|
||||
= note: move occurs because `hello` has type `[closure@$DIR/feature-gate-copy-closures.rs:13:17: 15:6 a:&i32]`, which does not implement the `Copy` trait
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-crate_in_paths.stderr
Normal file
10
src/test/ui/feature-gate-crate_in_paths.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: `crate` in paths is experimental (see issue #45477)
|
||||
--> $DIR/feature-gate-crate_in_paths.rs:14:15
|
||||
|
|
||||
14 | let _ = ::crate::S; //~ ERROR `crate` in paths is experimental
|
||||
| ^^^^^
|
||||
|
|
||||
= help: add #![feature(crate_in_paths)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-crate_visibility_modifier.stderr
Normal file
10
src/test/ui/feature-gate-crate_visibility_modifier.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: `crate` visibility modifier is experimental (see issue #45388)
|
||||
--> $DIR/feature-gate-crate_visibility_modifier.rs:11:1
|
||||
|
|
||||
11 | crate struct Bender { //~ ERROR `crate` visibility modifier is experimental
|
||||
| ^^^^^
|
||||
|
|
||||
= help: add #![feature(crate_visibility_modifier)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// Check that literals in attributes parse just fine.
|
||||
|
||||
// gate-test-custom_attribute
|
||||
|
||||
#![feature(rustc_attrs, attr_literals)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
106
src/test/ui/feature-gate-custom_attribute.stderr
Normal file
106
src/test/ui/feature-gate-custom_attribute.stderr
Normal file
|
@ -0,0 +1,106 @@
|
|||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:17:1
|
||||
|
|
||||
17 | #[fake_attr] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:18:1
|
||||
|
|
||||
18 | #[fake_attr(100)] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:19:1
|
||||
|
|
||||
19 | #[fake_attr(1, 2, 3)] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:20:1
|
||||
|
|
||||
20 | #[fake_attr("hello")] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:21:1
|
||||
|
|
||||
21 | #[fake_attr(name = "hello")] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:22:1
|
||||
|
|
||||
22 | #[fake_attr(1, "hi", key = 12, true, false)] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:23:1
|
||||
|
|
||||
23 | #[fake_attr(key = "hello", val = 10)] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:24:1
|
||||
|
|
||||
24 | #[fake_attr(key("hello"), val(10))] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:25:1
|
||||
|
|
||||
25 | #[fake_attr(enabled = true, disabled = false)] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:26:1
|
||||
|
|
||||
26 | #[fake_attr(true)] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:27:1
|
||||
|
|
||||
27 | #[fake_attr(pi = 3.14159)] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_attr` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:28:1
|
||||
|
|
||||
28 | #[fake_attr(b"hi")] //~ ERROR attribute `fake_attr` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `fake_doc` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute.rs:29:1
|
||||
|
|
||||
29 | #[fake_doc(r"doc")] //~ ERROR attribute `fake_doc` is currently unknown
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 13 previous errors
|
||||
|
138
src/test/ui/feature-gate-custom_attribute2.stderr
Normal file
138
src/test/ui/feature-gate-custom_attribute2.stderr
Normal file
|
@ -0,0 +1,138 @@
|
|||
error: The attribute `lt_struct` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:23:13
|
||||
|
|
||||
23 | struct StLt<#[lt_struct] 'a>(&'a u32);
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `ty_struct` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:25:13
|
||||
|
|
||||
25 | struct StTy<#[ty_struct] I>(I);
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `lt_enum` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:28:11
|
||||
|
|
||||
28 | enum EnLt<#[lt_enum] 'b> { A(&'b u32), B }
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `ty_enum` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:30:11
|
||||
|
|
||||
30 | enum EnTy<#[ty_enum] J> { A(J), B }
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `lt_trait` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:33:12
|
||||
|
|
||||
33 | trait TrLt<#[lt_trait] 'c> { fn foo(&self, _: &'c [u32]) -> &'c u32; }
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `ty_trait` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:35:12
|
||||
|
|
||||
35 | trait TrTy<#[ty_trait] K> { fn foo(&self, _: K); }
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `lt_type` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:38:11
|
||||
|
|
||||
38 | type TyLt<#[lt_type] 'd> = &'d u32;
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `ty_type` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:40:11
|
||||
|
|
||||
40 | type TyTy<#[ty_type] L> = (L, );
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `lt_inherent` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:43:6
|
||||
|
|
||||
43 | impl<#[lt_inherent] 'e> StLt<'e> { }
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `ty_inherent` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:45:6
|
||||
|
|
||||
45 | impl<#[ty_inherent] M> StTy<M> { }
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `lt_impl_for` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:48:6
|
||||
|
|
||||
48 | impl<#[lt_impl_for] 'f> TrLt<'f> for StLt<'f> {
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `ty_impl_for` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:52:6
|
||||
|
|
||||
52 | impl<#[ty_impl_for] N> TrTy<N> for StTy<N> {
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `lt_fn` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:57:9
|
||||
|
|
||||
57 | fn f_lt<#[lt_fn] 'g>(_: &'g [u32]) -> &'g u32 { loop { } }
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `ty_fn` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:59:9
|
||||
|
|
||||
59 | fn f_ty<#[ty_fn] O>(_: O) { }
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `lt_meth` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:63:13
|
||||
|
|
||||
63 | fn m_lt<#[lt_meth] 'h>(_: &'h [u32]) -> &'h u32 { loop { } }
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `ty_meth` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:65:13
|
||||
|
|
||||
65 | fn m_ty<#[ty_meth] P>(_: P) { }
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: The attribute `lt_hof` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
|
||||
--> $DIR/feature-gate-custom_attribute2.rs:70:19
|
||||
|
|
||||
70 | where Q: for <#[lt_hof] 'i> Fn(&'i [u32]) -> &'i u32
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to 17 previous errors
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// gate-test-custom_derive
|
||||
|
||||
#[derive_Clone]
|
||||
//~^ ERROR attributes of the form `#[derive_*]` are reserved
|
||||
struct Test;
|
10
src/test/ui/feature-gate-custom_derive.stderr
Normal file
10
src/test/ui/feature-gate-custom_derive.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: attributes of the form `#[derive_*]` are reserved for the compiler (see issue #29644)
|
||||
--> $DIR/feature-gate-custom_derive.rs:11:1
|
||||
|
|
||||
11 | #[derive_Clone]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(custom_derive)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-decl_macro.stderr
Normal file
10
src/test/ui/feature-gate-decl_macro.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: `macro` is experimental (see issue #39412)
|
||||
--> $DIR/feature-gate-decl_macro.rs:13:1
|
||||
|
|
||||
13 | macro m() {} //~ ERROR `macro` is experimental (see issue #39412)
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(decl_macro)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// gate-test-default_type_parameter_fallback
|
||||
|
||||
#![allow(unused)]
|
||||
|
||||
fn avg<T=i32>(_: T) {}
|
|
@ -0,0 +1,21 @@
|
|||
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions.
|
||||
--> $DIR/feature-gate-default_type_parameter_fallback.rs:13:8
|
||||
|
|
||||
13 | fn avg<T=i32>(_: T) {}
|
||||
| ^
|
||||
|
|
||||
= note: #[deny(invalid_type_param_default)] on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #36887 <https://github.com/rust-lang/rust/issues/36887>
|
||||
|
||||
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions.
|
||||
--> $DIR/feature-gate-default_type_parameter_fallback.rs:18:6
|
||||
|
|
||||
18 | impl<T=i32> S<T> {}
|
||||
| ^
|
||||
|
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #36887 <https://github.com/rust-lang/rust/issues/36887>
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
10
src/test/ui/feature-gate-doc_cfg.stderr
Normal file
10
src/test/ui/feature-gate-doc_cfg.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: #[doc(cfg(...))] is experimental (see issue #43781)
|
||||
--> $DIR/feature-gate-doc_cfg.rs:11:1
|
||||
|
|
||||
11 | #[doc(cfg(unix))] //~ ERROR: #[doc(cfg(...))] is experimental
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(doc_cfg)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-doc_masked.stderr
Normal file
10
src/test/ui/feature-gate-doc_masked.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: #[doc(masked)] is experimental (see issue #44027)
|
||||
--> $DIR/feature-gate-doc_masked.rs:11:1
|
||||
|
|
||||
11 | #[doc(masked)] //~ ERROR: #[doc(masked)] is experimental
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(doc_masked)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-doc_spotlight.stderr
Normal file
10
src/test/ui/feature-gate-doc_spotlight.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: #[doc(spotlight)] is experimental (see issue #45040)
|
||||
--> $DIR/feature-gate-doc_spotlight.rs:11:1
|
||||
|
|
||||
11 | #[doc(spotlight)] //~ ERROR: #[doc(spotlight)] is experimental
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(doc_spotlight)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-dotdoteq_in_patterns.stderr
Normal file
10
src/test/ui/feature-gate-dotdoteq_in_patterns.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: `..=` syntax in patterns is experimental (see issue #28237)
|
||||
--> $DIR/feature-gate-dotdoteq_in_patterns.rs:13:9
|
||||
|
|
||||
13 | 0 ..= 3 => {} //~ ERROR `..=` syntax in patterns is experimental
|
||||
| ^^^^^^^
|
||||
|
|
||||
= help: add #![feature(dotdoteq_in_patterns)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
14
src/test/ui/feature-gate-dropck-ugeh-2.stderr
Normal file
14
src/test/ui/feature-gate-dropck-ugeh-2.stderr
Normal file
|
@ -0,0 +1,14 @@
|
|||
error: use of deprecated attribute `dropck_parametricity`: unsafe_destructor_blind_to_params has been replaced by may_dangle and will be removed in the future. See https://github.com/rust-lang/rust/issues/34761
|
||||
--> $DIR/feature-gate-dropck-ugeh-2.rs:17:5
|
||||
|
|
||||
17 | #[unsafe_destructor_blind_to_params]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/feature-gate-dropck-ugeh-2.rs:11:9
|
||||
|
|
||||
11 | #![deny(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-dropck-ugeh.stderr
Normal file
10
src/test/ui/feature-gate-dropck-ugeh.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: unsafe_destructor_blind_to_params has been replaced by may_dangle and will be removed in the future (see issue #28498)
|
||||
--> $DIR/feature-gate-dropck-ugeh.rs:29:5
|
||||
|
|
||||
29 | #[unsafe_destructor_blind_to_params] // This is the UGEH attribute
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(dropck_parametricity)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-dyn-trait.stderr
Normal file
10
src/test/ui/feature-gate-dyn-trait.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: `dyn Trait` syntax is unstable (see issue #44662)
|
||||
--> $DIR/feature-gate-dyn-trait.rs:12:14
|
||||
|
|
||||
12 | type A = Box<dyn Trait>; //~ ERROR `dyn Trait` syntax is unstable
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(dyn_trait)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-exclusive-range-pattern.stderr
Normal file
10
src/test/ui/feature-gate-exclusive-range-pattern.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: exclusive range pattern syntax is experimental (see issue #37854)
|
||||
--> $DIR/feature-gate-exclusive-range-pattern.rs:13:9
|
||||
|
|
||||
13 | 0 .. 3 => {} //~ ERROR exclusive range pattern syntax is experimental
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: add #![feature(exclusive_range_pattern)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-extern_types.stderr
Normal file
10
src/test/ui/feature-gate-extern_types.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: extern types are experimental (see issue #43467)
|
||||
--> $DIR/feature-gate-extern_types.rs:12:5
|
||||
|
|
||||
12 | type T; //~ ERROR extern types are experimental
|
||||
| ^^^^^^^
|
||||
|
|
||||
= help: add #![feature(extern_types)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
10
src/test/ui/feature-gate-external_doc.stderr
Normal file
10
src/test/ui/feature-gate-external_doc.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: #[doc(include = "...")] is experimental (see issue #44732)
|
||||
--> $DIR/feature-gate-external_doc.rs:11:1
|
||||
|
|
||||
11 | #[doc(include="asdf.md")] //~ ERROR: #[doc(include = "...")] is experimental
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(external_doc)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
14
src/test/ui/feature-gate-feature-gate.stderr
Normal file
14
src/test/ui/feature-gate-feature-gate.stderr
Normal file
|
@ -0,0 +1,14 @@
|
|||
error: unstable feature
|
||||
--> $DIR/feature-gate-feature-gate.rs:12:12
|
||||
|
|
||||
12 | #![feature(intrinsics)] //~ ERROR unstable feature
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/feature-gate-feature-gate.rs:11:11
|
||||
|
|
||||
11 | #![forbid(unstable_features)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue