diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-27 00:54:25 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-27 18:56:13 +0300 |
| commit | ca9faa52f5ada0054b1fa27d97aedf448afb059b (patch) | |
| tree | 9913a609bd4690854ffb69816602dbb020ed6a99 /src/test/run-pass/generator | |
| parent | 0e9b465d729d07101b29b4d096d83edf9be82df0 (diff) | |
| download | rust-ca9faa52f5ada0054b1fa27d97aedf448afb059b.tar.gz rust-ca9faa52f5ada0054b1fa27d97aedf448afb059b.zip | |
tests: Add missing run-pass annotations
Diffstat (limited to 'src/test/run-pass/generator')
| -rw-r--r-- | src/test/run-pass/generator/addassign-yield.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/generator/drop-and-replace.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/generator/overlap-locals.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/generator/size-moved-locals.rs | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/src/test/run-pass/generator/addassign-yield.rs b/src/test/run-pass/generator/addassign-yield.rs index 6a417936384..66f22bf31fc 100644 --- a/src/test/run-pass/generator/addassign-yield.rs +++ b/src/test/run-pass/generator/addassign-yield.rs @@ -1,3 +1,4 @@ +// run-pass // Regression test for broken MIR error (#61442) // Due to the two possible evaluation orders for // a '+=' expression (depending on whether or not the 'AddAssign' trait diff --git a/src/test/run-pass/generator/drop-and-replace.rs b/src/test/run-pass/generator/drop-and-replace.rs index 042e1276db5..bb33502815b 100644 --- a/src/test/run-pass/generator/drop-and-replace.rs +++ b/src/test/run-pass/generator/drop-and-replace.rs @@ -1,3 +1,4 @@ +// run-pass // Regression test for incorrect DropAndReplace behavior introduced in #60840 // and fixed in #61373. When combined with the optimization implemented in // #60187, this produced incorrect code for generators when a saved local was diff --git a/src/test/run-pass/generator/overlap-locals.rs b/src/test/run-pass/generator/overlap-locals.rs index 704484a480e..101c8714fa8 100644 --- a/src/test/run-pass/generator/overlap-locals.rs +++ b/src/test/run-pass/generator/overlap-locals.rs @@ -1,3 +1,5 @@ +// run-pass + #![feature(generators)] fn main() { diff --git a/src/test/run-pass/generator/size-moved-locals.rs b/src/test/run-pass/generator/size-moved-locals.rs index dbcdfc61ef9..01db971434b 100644 --- a/src/test/run-pass/generator/size-moved-locals.rs +++ b/src/test/run-pass/generator/size-moved-locals.rs @@ -1,3 +1,4 @@ +// run-pass // Test that we don't duplicate storage for a variable that is moved to another // binding. This used to happen in the presence of unwind and drop edges (see // `complex` below.) |
