]> git.lizzy.rs Git - rust.git/commitdiff
Edition 2021 for tests
authorAman Arora <me@aman-arora.com>
Tue, 29 Jun 2021 07:33:24 +0000 (03:33 -0400)
committerAman Arora <me@aman-arora.com>
Tue, 29 Jun 2021 07:33:24 +0000 (03:33 -0400)
src/test/ui/closures/2229_closure_analysis/optimization/edge_case.rs
src/test/ui/closures/2229_closure_analysis/optimization/edge_case.stderr
src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs
src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.stderr [deleted file]

index 960c61ccaef491e4bc0faef43419df975fe69515..37a2a97d44279d7746a36e7730172c4796953159 100644 (file)
@@ -1,7 +1,4 @@
-#![feature(capture_disjoint_fields)]
-//~^ WARNING: the feature `capture_disjoint_fields` is incomplete
-//~| NOTE: `#[warn(incomplete_features)]` on by default
-//~| NOTE: see issue #53488 <https://github.com/rust-lang/rust/issues/53488>
+// edition:2021
 
 #![feature(rustc_attrs)]
 #![allow(unused)]
index c9f9386b9aa1f85f80fc9e024cbe4f5f01b4cee8..b727c06d9528f0ded2176718e413576b1a15e321 100644 (file)
@@ -1,5 +1,5 @@
 error[E0658]: attributes on expressions are experimental
-  --> $DIR/edge_case.rs:23:13
+  --> $DIR/edge_case.rs:20:13
    |
 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -7,39 +7,30 @@ LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
 
-warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
-  --> $DIR/edge_case.rs:1:12
-   |
-LL | #![feature(capture_disjoint_fields)]
-   |            ^^^^^^^^^^^^^^^^^^^^^^^
-   |
-   = note: `#[warn(incomplete_features)]` on by default
-   = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
-
 error: First Pass analysis includes:
-  --> $DIR/edge_case.rs:23:39
+  --> $DIR/edge_case.rs:20:39
    |
 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
    |                                       ^^^^^^^^^^^^^^^
    |
 note: Capturing m[Deref,(0, 0),Deref] -> ImmBorrow
-  --> $DIR/edge_case.rs:23:48
+  --> $DIR/edge_case.rs:20:48
    |
 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
    |                                                ^^^^^
 
 error: Min Capture analysis includes:
-  --> $DIR/edge_case.rs:23:39
+  --> $DIR/edge_case.rs:20:39
    |
 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
    |                                       ^^^^^^^^^^^^^^^
    |
 note: Min Capture m[Deref,(0, 0),Deref] -> ImmBorrow
-  --> $DIR/edge_case.rs:23:48
+  --> $DIR/edge_case.rs:20:48
    |
 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
    |                                                ^^^^^
 
-error: aborting due to 3 previous errors; 1 warning emitted
+error: aborting due to 3 previous errors
 
 For more information about this error, try `rustc --explain E0658`.
index 2c4ba0c91a6d1bff8956d6163e34021de31cf541..033fd6f17753af47dd23d3cea03a9fe8cb740201 100644 (file)
@@ -1,8 +1,4 @@
-#![feature(capture_disjoint_fields)]
-//~^ WARNING: the feature `capture_disjoint_fields` is incomplete
-//~| NOTE: `#[warn(incomplete_features)]` on by default
-//~| NOTE: see issue #53488 <https://github.com/rust-lang/rust/issues/53488>
-
+// edition:2021
 // run-pass
 
 #![allow(unused)]
diff --git a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.stderr b/src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.stderr
deleted file mode 100644 (file)
index 36906d1..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
-  --> $DIR/edge_case_run_pass.rs:1:12
-   |
-LL | #![feature(capture_disjoint_fields)]
-   |            ^^^^^^^^^^^^^^^^^^^^^^^
-   |
-   = note: `#[warn(incomplete_features)]` on by default
-   = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
-
-warning: 1 warning emitted
-