Skip to content

Commit 38438c6

Browse files
committed
Migrate a few feature gate tests to ui
Renames only in this commit, and obviously .stderr file additions.
1 parent 8ba9f9e commit 38438c6

File tree

207 files changed

+3518
-0
lines changed

Some content is hidden

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

207 files changed

+3518
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: msp430-interrupt ABI is experimental and subject to change (see issue #38487)
2+
--> $DIR/feature-gate-abi-msp430-interrupt.rs:14:1
3+
|
4+
14 | extern "msp430-interrupt" fn foo() {}
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
8+
9+
error: aborting due to previous error
10+

src/test/ui/feature-gate-abi.stderr

Lines changed: 450 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
error: multiple-element slice matches anywhere but at the end of a slice (e.g. `[0, ..xs, 0]`) are experimental (see issue #23121)
2+
--> $DIR/feature-gate-advanced-slice-features.rs:18:9
3+
|
4+
18 | [ xs.., 4, 5 ] => {} //~ ERROR multiple-element slice matches
5+
| ^^^^^^^^^^^^^^
6+
|
7+
= help: add #![feature(advanced_slice_patterns)] to the crate attributes to enable
8+
9+
error: multiple-element slice matches anywhere but at the end of a slice (e.g. `[0, ..xs, 0]`) are experimental (see issue #23121)
10+
--> $DIR/feature-gate-advanced-slice-features.rs:19:9
11+
|
12+
19 | [ 1, xs.., 5 ] => {} //~ ERROR multiple-element slice matches
13+
| ^^^^^^^^^^^^^^
14+
|
15+
= help: add #![feature(advanced_slice_patterns)] to the crate attributes to enable
16+
17+
error: aborting due to 2 previous errors
18+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: the `#[default_lib_allocator]` attribute is an experimental feature
2+
--> $DIR/feature-gate-allocator_internals.rs:11:1
3+
|
4+
11 | #![default_lib_allocator] //~ ERROR: attribute is an experimental feature
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= help: add #![feature(allocator_internals)] to the crate attributes to enable
8+
9+
error: aborting due to previous error
10+

0 commit comments

Comments
 (0)