Skip to content

Commit ddfd0c7

Browse files
committed
Remove feature(control_flow_enum) in tests
1 parent c89b873 commit ddfd0c7

21 files changed

+8
-29
lines changed

tests/mir-opt/jump_threading.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//@ compile-flags: -Zmir-enable-passes=+Inline
33
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
44

5-
#![feature(control_flow_enum)]
65
#![feature(try_trait_v2)]
76
#![feature(custom_mir, core_intrinsics, rustc_attrs)]
87

tests/mir-opt/separate_const_switch.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// skip-filecheck
2-
#![feature(control_flow_enum)]
32
#![feature(try_trait_v2)]
43

54
//@ compile-flags: -Zunsound-mir-opts

tests/ui-fulldeps/stable-mir/check_abi.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#![feature(rustc_private)]
1010
#![feature(assert_matches)]
11-
#![feature(control_flow_enum)]
1211
#![feature(ascii_char, ascii_char_variants)]
1312

1413
extern crate rustc_hir;

tests/ui-fulldeps/stable-mir/check_allocation.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#![feature(rustc_private)]
1212
#![feature(assert_matches)]
13-
#![feature(control_flow_enum)]
1413
#![feature(ascii_char, ascii_char_variants)]
1514

1615
extern crate rustc_hir;

tests/ui-fulldeps/stable-mir/check_attribute.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
88

99
#![feature(rustc_private)]
10-
#![feature(control_flow_enum)]
1110

1211
extern crate rustc_hir;
1312
#[macro_use]

tests/ui-fulldeps/stable-mir/check_def_ty.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#![feature(rustc_private)]
1212
#![feature(assert_matches)]
13-
#![feature(control_flow_enum)]
1413

1514
#[macro_use]
1615
extern crate rustc_smir;

tests/ui-fulldeps/stable-mir/check_defs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
#[macro_use]
1514
extern crate rustc_smir;

tests/ui-fulldeps/stable-mir/check_foreign.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
extern crate rustc_middle;
1514
#[macro_use]

tests/ui-fulldeps/stable-mir/check_instance.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
#[macro_use]
1514
extern crate rustc_smir;

tests/ui-fulldeps/stable-mir/check_item_kind.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
#[macro_use]
1514
extern crate rustc_smir;

tests/ui-fulldeps/stable-mir/check_trait_queries.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
#[macro_use]
1514
extern crate rustc_smir;

tests/ui-fulldeps/stable-mir/check_transform.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#![feature(rustc_private)]
1010
#![feature(assert_matches)]
11-
#![feature(control_flow_enum)]
1211
#![feature(ascii_char, ascii_char_variants)]
1312

1413
extern crate rustc_hir;

tests/ui-fulldeps/stable-mir/check_ty_fold.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#![feature(rustc_private)]
1212
#![feature(assert_matches)]
13-
#![feature(control_flow_enum)]
1413

1514
#[macro_use]
1615
extern crate rustc_smir;

tests/ui-fulldeps/stable-mir/crate-info.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
extern crate rustc_hir;
1514
#[macro_use]

tests/ui-fulldeps/stable-mir/projections.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
extern crate rustc_hir;
1514
#[macro_use]

tests/ui-fulldeps/stable-mir/smir_internal.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#![feature(rustc_private)]
1212
#![feature(assert_matches)]
13-
#![feature(control_flow_enum)]
1413

1514
#[macro_use]
1615
extern crate rustc_smir;

tests/ui-fulldeps/stable-mir/smir_serde.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
#[macro_use]
1514
extern crate rustc_smir;

tests/ui-fulldeps/stable-mir/smir_visitor.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#![feature(rustc_private)]
1111
#![feature(assert_matches)]
12-
#![feature(control_flow_enum)]
1312

1413
#[macro_use]
1514
extern crate rustc_smir;

tests/ui/try-trait/bad-interconversion.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(control_flow_enum)]
2-
31
use std::ops::ControlFlow;
42

53
fn result_to_result() -> Result<u64, u8> {

tests/ui/try-trait/bad-interconversion.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: `?` couldn't convert the error to `u8`
2-
--> $DIR/bad-interconversion.rs:6:20
2+
--> $DIR/bad-interconversion.rs:4:20
33
|
44
LL | fn result_to_result() -> Result<u64, u8> {
55
| --------------- expected `u8` because of this
@@ -15,7 +15,7 @@ LL | Ok(Err(123_i32)?)
1515
= note: required for `Result<u64, u8>` to implement `FromResidual<Result<Infallible, i32>>`
1616

1717
error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result`
18-
--> $DIR/bad-interconversion.rs:11:12
18+
--> $DIR/bad-interconversion.rs:9:12
1919
|
2020
LL | fn option_to_result() -> Result<u64, String> {
2121
| -------------------------------------------- this function returns a `Result`
@@ -26,7 +26,7 @@ LL | Some(3)?;
2626
= help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
2727

2828
error[E0277]: the `?` operator can only be used on `Result`s in a function that returns `Result`
29-
--> $DIR/bad-interconversion.rs:17:31
29+
--> $DIR/bad-interconversion.rs:15:31
3030
|
3131
LL | fn control_flow_to_result() -> Result<u64, String> {
3232
| -------------------------------------------------- this function returns a `Result`
@@ -37,7 +37,7 @@ LL | Ok(ControlFlow::Break(123)?)
3737
= help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
3838

3939
error[E0277]: the `?` operator can only be used on `Option`s, not `Result`s, in a function that returns `Option`
40-
--> $DIR/bad-interconversion.rs:22:22
40+
--> $DIR/bad-interconversion.rs:20:22
4141
|
4242
LL | fn result_to_option() -> Option<u16> {
4343
| ------------------------------------ this function returns an `Option`
@@ -48,7 +48,7 @@ LL | Some(Err("hello")?)
4848
= help: the trait `FromResidual<Option<Infallible>>` is implemented for `Option<T>`
4949

5050
error[E0277]: the `?` operator can only be used on `Option`s in a function that returns `Option`
51-
--> $DIR/bad-interconversion.rs:27:33
51+
--> $DIR/bad-interconversion.rs:25:33
5252
|
5353
LL | fn control_flow_to_option() -> Option<u64> {
5454
| ------------------------------------------ this function returns an `Option`
@@ -59,7 +59,7 @@ LL | Some(ControlFlow::Break(123)?)
5959
= help: the trait `FromResidual<Option<Infallible>>` is implemented for `Option<T>`
6060

6161
error[E0277]: the `?` operator can only be used on `ControlFlow`s in a function that returns `ControlFlow`
62-
--> $DIR/bad-interconversion.rs:32:39
62+
--> $DIR/bad-interconversion.rs:30:39
6363
|
6464
LL | fn result_to_control_flow() -> ControlFlow<String> {
6565
| -------------------------------------------------- this function returns a `ControlFlow`
@@ -71,7 +71,7 @@ LL | ControlFlow::Continue(Err("hello")?)
7171
= help: for that trait implementation, expected `ControlFlow<String, Infallible>`, found `Result<Infallible, &str>`
7272

7373
error[E0277]: the `?` operator can only be used on `ControlFlow`s in a function that returns `ControlFlow`
74-
--> $DIR/bad-interconversion.rs:37:12
74+
--> $DIR/bad-interconversion.rs:35:12
7575
|
7676
LL | fn option_to_control_flow() -> ControlFlow<u64> {
7777
| ----------------------------------------------- this function returns a `ControlFlow`
@@ -83,7 +83,7 @@ LL | Some(3)?;
8383
= help: for that trait implementation, expected `ControlFlow<u64, Infallible>`, found `Option<Infallible>`
8484

8585
error[E0277]: the `?` operator in a function that returns `ControlFlow<B, _>` can only be used on other `ControlFlow<B, _>`s (with the same Break type)
86-
--> $DIR/bad-interconversion.rs:43:29
86+
--> $DIR/bad-interconversion.rs:41:29
8787
|
8888
LL | fn control_flow_to_control_flow() -> ControlFlow<i64> {
8989
| ----------------------------------------------------- this function returns a `ControlFlow`

tests/ui/try-trait/try-operator-custom.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@ run-pass
22

3-
#![feature(control_flow_enum)]
43
#![feature(try_trait_v2)]
54

65
use std::ops::{ControlFlow, FromResidual, Try};

0 commit comments

Comments
 (0)