about summary refs log tree commit diff
path: root/src/test/ui/generator/yield-while-iterating.rs
AgeCommit message (Collapse)AuthorLines
2019-01-27Change generator trait to use pinningWim Looman-6/+7
2018-12-25Remove licensesMark Rousskov-10/+0
2018-03-21Make resuming generators unsafe instead of the creation of immovable ↵John Kåre Alsaker-3/+3
generators. Fixes #47787
2017-07-28Fix more tests with `GeneratorState` renameAlex Crichton-1/+1
2017-07-28change how we report `err_out_of_scope` borrowck errorsNiko Matsakis-0/+84
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.