Skip to content

Commit 32fa964

Browse files
committed
Edition 2021 for tests
1 parent 23c0334 commit 32fa964

File tree

4 files changed

+8
-35
lines changed

4 files changed

+8
-35
lines changed

src/test/ui/closures/2229_closure_analysis/optimization/edge_case.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#![feature(capture_disjoint_fields)]
2-
//~^ WARNING: the feature `capture_disjoint_fields` is incomplete
3-
//~| NOTE: `#[warn(incomplete_features)]` on by default
4-
//~| NOTE: see issue #53488 <https://github.com/rust-lang/rust/issues/53488>
1+
// edition:2021
52

63
#![feature(rustc_attrs)]
74
#![allow(unused)]
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,36 @@
11
error[E0658]: attributes on expressions are experimental
2-
--> $DIR/edge_case.rs:23:13
2+
--> $DIR/edge_case.rs:20:13
33
|
44
LL | let c = #[rustc_capture_analysis] || drop(&m.a.0);
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
88
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
99

10-
warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11-
--> $DIR/edge_case.rs:1:12
12-
|
13-
LL | #![feature(capture_disjoint_fields)]
14-
| ^^^^^^^^^^^^^^^^^^^^^^^
15-
|
16-
= note: `#[warn(incomplete_features)]` on by default
17-
= note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
18-
1910
error: First Pass analysis includes:
20-
--> $DIR/edge_case.rs:23:39
11+
--> $DIR/edge_case.rs:20:39
2112
|
2213
LL | let c = #[rustc_capture_analysis] || drop(&m.a.0);
2314
| ^^^^^^^^^^^^^^^
2415
|
2516
note: Capturing m[Deref,(0, 0),Deref] -> ImmBorrow
26-
--> $DIR/edge_case.rs:23:48
17+
--> $DIR/edge_case.rs:20:48
2718
|
2819
LL | let c = #[rustc_capture_analysis] || drop(&m.a.0);
2920
| ^^^^^
3021

3122
error: Min Capture analysis includes:
32-
--> $DIR/edge_case.rs:23:39
23+
--> $DIR/edge_case.rs:20:39
3324
|
3425
LL | let c = #[rustc_capture_analysis] || drop(&m.a.0);
3526
| ^^^^^^^^^^^^^^^
3627
|
3728
note: Min Capture m[Deref,(0, 0),Deref] -> ImmBorrow
38-
--> $DIR/edge_case.rs:23:48
29+
--> $DIR/edge_case.rs:20:48
3930
|
4031
LL | let c = #[rustc_capture_analysis] || drop(&m.a.0);
4132
| ^^^^^
4233

43-
error: aborting due to 3 previous errors; 1 warning emitted
34+
error: aborting due to 3 previous errors
4435

4536
For more information about this error, try `rustc --explain E0658`.

src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
#![feature(capture_disjoint_fields)]
2-
//~^ WARNING: the feature `capture_disjoint_fields` is incomplete
3-
//~| NOTE: `#[warn(incomplete_features)]` on by default
4-
//~| NOTE: see issue #53488 <https://github.com/rust-lang/rust/issues/53488>
5-
1+
// edition:2021
62
// run-pass
73

84
#![allow(unused)]

src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.stderr

-11
This file was deleted.

0 commit comments

Comments
 (0)