rust/src/test/ui/liveness
Tomasz Miąsko 9f6f8620e1 Improve liveness analysis for generators
Liveness analysis for generators assumes that execution always continues
normally after a yield point, not accounting for the fact that generator
could be dropped before completion.

If generators captures any variables by reference, those variables could
be used within a generator, or when the generator completes, but also
after each yield point in the case the generator is dropped.

Account for the case when generator is dropped after yielding, but
before running to the completion. This effectively considers all
variables captured by reference to be used after a yield point.
2021-08-24 13:31:11 +02:00
..
liveness-assign Compiler error messages: reduce assertiveness of message E0384 2021-04-12 23:29:09 +01:00
liveness-asm.rs Limit liveness-asm tests to x86_64 2020-10-21 00:34:01 -05:00
liveness-asm.stderr Bless liveness-asm output 2020-10-21 00:57:06 -05:00
liveness-closure-require-ret.rs Remove licenses 2018-12-25 21:08:33 -07:00
liveness-closure-require-ret.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
liveness-consts.rs Liveness analysis for everybody 2020-09-29 23:45:31 +02:00
liveness-consts.stderr Bless some tests 2021-02-28 23:21:18 +01:00
liveness-dead.rs Fix unused_assignments false positive 2019-01-03 23:25:41 +09:00
liveness-dead.stderr Bless some tests 2021-02-28 23:21:18 +01:00
liveness-derive.rs Liveness analysis for everybody 2020-09-29 23:45:31 +02:00
liveness-derive.stderr Liveness analysis for everybody 2020-09-29 23:45:31 +02:00
liveness-forgot-ret.rs Remove licenses 2018-12-25 21:08:33 -07:00
liveness-forgot-ret.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
liveness-issue-2163.rs Remove licenses 2018-12-25 21:08:33 -07:00
liveness-issue-2163.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
liveness-missing-ret2.rs Remove licenses 2018-12-25 21:08:33 -07:00
liveness-missing-ret2.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
liveness-move-call-arg.rs Remove licenses 2018-12-25 21:08:33 -07:00
liveness-move-call-arg.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
liveness-move-in-loop.rs Remove licenses 2018-12-25 21:08:33 -07:00
liveness-move-in-loop.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
liveness-move-in-while.rs Make WhileTrue into an EarlyLintPass lint. 2019-07-06 06:43:58 +02:00
liveness-move-in-while.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
liveness-return-last-stmt-semi.rs Remove licenses 2018-12-25 21:08:33 -07:00
liveness-return-last-stmt-semi.stderr Show macro name in 'this error originates in macro' message 2021-05-12 19:03:06 -04:00
liveness-unused.rs Remove licenses 2018-12-25 21:08:33 -07:00
liveness-unused.stderr Bless some tests 2021-02-28 23:21:18 +01:00
liveness-upvars.rs Improve liveness analysis for generators 2021-08-24 13:31:11 +02:00
liveness-upvars.stderr Improve liveness analysis for generators 2021-08-24 13:31:11 +02:00
liveness-use-after-move.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
liveness-use-after-move.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
liveness-use-after-send.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
liveness-use-after-send.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00