summary refs log tree commit diff
path: root/src/test/ui/generator
AgeCommit message (Collapse)AuthorLines
2018-02-09Fix visitation order of calls so that it matches execution order. Fixes #48048John Kåre Alsaker-0/+33
2018-01-30Allow access of the state field before the generator transform. Fixes ↵John Kåre Alsaker-18/+18
#47482, #46476
2018-01-29Require yield types to be sizedJohn Kåre Alsaker-0/+43
2018-01-29Make `yield_in_scope_for_expr` work with patterns. Fixes #47758John Kåre Alsaker-0/+33
2018-01-23Port borrows across yield check to MIR borrowckJohn Kåre Alsaker-0/+54
2018-01-23Add dropck testJohn Kåre Alsaker-0/+44
2018-01-23Fix yield-while-local-borrowed.rs testJohn Kåre Alsaker-8/+42
2018-01-23Make immovable generators unsafeJohn Kåre Alsaker-0/+27
2018-01-23Adds support for immovable generators. Move checking of invalid borrows ↵John Kåre Alsaker-4/+97
across suspension points to borrowck. Fixes #44197, #45259 and #45093.
2018-01-15On E0283, point at method with the requirementsEsteban Küber-2/+10
On required type annotation diagnostic error, point at method with the requirements if the span is available.
2017-12-14Point at var in short lived borrowsEsteban Küber-8/+10
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-5/+5
2017-09-20add proofs and fix postorder traversalAriel Ben-Yehuda-4/+4
I don't think the "quasi-postorder" travesal could cause any issues, but there's no reason for it to stay broken.
2017-09-20Only consider yields coming after the expressions when computing generator ↵John Kåre Alsaker-34/+0
interiors
2017-08-17Fix more UI testsAlex Crichton-1/+1
2017-08-17Fix UI testsAlex Crichton-10/+2
2017-08-14Choose another error codeAlex Crichton-1/+1
2017-08-12Fix UI testAlex Crichton-4/+4
2017-08-09Add UI test outputsAlex Crichton-0/+89
2017-08-09Initial pass review commentsAlex Crichton-0/+120
2017-07-29Use a free error codeAlex Crichton-5/+5
2017-07-28Fix more tests with `GeneratorState` renameAlex Crichton-4/+4
2017-07-28update references due to removing tabsNiko Matsakis-2/+2
2017-07-28Remove tabsJohn Kåre Alsaker-6/+6
2017-07-28Fix tidy errorsJohn Kåre Alsaker-8/+8
2017-07-28change how we report `err_out_of_scope` borrowck errorsNiko Matsakis-0/+349
Also, remove the explicit code detecting borrows over a yield. It turns out not to be necessary -- any such borrow winds up with a lifetime that is part of the generator type, and therefore which will outlive the generator expression itself, which yields an `err_out_of_scope`. So instead we intercept those errors and display them in a nicer way.