Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator support #43076

Merged
merged 128 commits into from
Aug 28, 2017
Merged

Generator support #43076

merged 128 commits into from
Aug 28, 2017

Commits on Jul 28, 2017

  1. Generator literal support

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    d861982 View commit details
    Browse the repository at this point in the history
  2. Fix tidy warnings

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    17c749f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8103017 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b5449b7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0b5b012 View commit details
    Browse the repository at this point in the history
  6. Added some tests

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    cc40f58 View commit details
    Browse the repository at this point in the history
  7. Fix tests

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    51bb31a View commit details
    Browse the repository at this point in the history
  8. Add some generator pass/fail tests

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    5efb0cb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    bc9b4de View commit details
    Browse the repository at this point in the history
  10. Add documentation for generators

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    55bb1c0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    facabcb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    075fd36 View commit details
    Browse the repository at this point in the history
  13. Don't print gen in HIR

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    057b0ad View commit details
    Browse the repository at this point in the history
  14. Update error codes

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    66fc6df View commit details
    Browse the repository at this point in the history
  15. Rename suspend to yield

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    df608e7 View commit details
    Browse the repository at this point in the history
  16. Use FIXME instead of TODO

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    8cd0595 View commit details
    Browse the repository at this point in the history
  17. Add some comments

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    2afd04c View commit details
    Browse the repository at this point in the history
  18. Fix whitespace

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    a88e750 View commit details
    Browse the repository at this point in the history
  19. Fix tests

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    e62d9d5 View commit details
    Browse the repository at this point in the history
  20. Clarifying documentation for generator

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    5d174f0 View commit details
    Browse the repository at this point in the history
  21. Fix hash impl for SimplifiedType

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    8bcafc5 View commit details
    Browse the repository at this point in the history
  22. Fix examples

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    bfd71c5 View commit details
    Browse the repository at this point in the history
  23. Fix upstream changes

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    66b8a12 View commit details
    Browse the repository at this point in the history
  24. Move a FIXME around

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    098d6f0 View commit details
    Browse the repository at this point in the history
  25. Copy a comment

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    75eb598 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    21f2d25 View commit details
    Browse the repository at this point in the history
  27. Fix printing

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    05fcef0 View commit details
    Browse the repository at this point in the history
  28. Remove a FIXME

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    6e66dcc View commit details
    Browse the repository at this point in the history
  29. Touch up unstable docs for generators

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    7eae848 View commit details
    Browse the repository at this point in the history
  30. Add a test

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    77bf6e4 View commit details
    Browse the repository at this point in the history
  31. Add a test case for conditional drop

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    12bbcd3 View commit details
    Browse the repository at this point in the history
  32. Convert tabs to spaces

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    8e82b19 View commit details
    Browse the repository at this point in the history
  33. add some tests of yielding with outstanding borrows

    No doubt there are more tests one might write, but it's a start.
    nikomatsakis authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    264c3f4 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    d71fa93 View commit details
    Browse the repository at this point in the history
  35. Tweak docs

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    2ad0f89 View commit details
    Browse the repository at this point in the history
  36. Revert borrowck changes

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    10def9a View commit details
    Browse the repository at this point in the history
  37. Revert some whitespace changes

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    a602fc0 View commit details
    Browse the repository at this point in the history
  38. Remove debug code

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    dcddd80 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    9317204 View commit details
    Browse the repository at this point in the history
  40. Remove support for gen arg

    alexcrichton authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    09a5d31 View commit details
    Browse the repository at this point in the history
  41. Convert to spaces

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    eea290d View commit details
    Browse the repository at this point in the history
  42. Add some comments

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    cbdb186 View commit details
    Browse the repository at this point in the history
  43. Convert to spaces

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    b744b1c View commit details
    Browse the repository at this point in the history
  44. Update FIXME

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    e4fdbcb View commit details
    Browse the repository at this point in the history
  45. Fix a string literal

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    14c7476 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    5a6e069 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    188cdf4 View commit details
    Browse the repository at this point in the history
  48. change how we report err_out_of_scope borrowck errors

    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.
    nikomatsakis authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    3fdc3fa View commit details
    Browse the repository at this point in the history
  49. Fix tidy errors

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    f5ec503 View commit details
    Browse the repository at this point in the history
  50. Fix error message tests

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    4628f85 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    0a8b81a View commit details
    Browse the repository at this point in the history
  52. Fix error message tests

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    6106f6c View commit details
    Browse the repository at this point in the history
  53. Fix error message tests again

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    b2d931a View commit details
    Browse the repository at this point in the history
  54. Remove tabs

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    d32428b View commit details
    Browse the repository at this point in the history
  55. update references due to removing tabs

    nikomatsakis authored and Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    39478e8 View commit details
    Browse the repository at this point in the history
  56. Derive traits for State.

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    62e210f View commit details
    Browse the repository at this point in the history
  57. Rename State to GeneratorState

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    df0496a View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    5da9a8a View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    9a6a866 View commit details
    Browse the repository at this point in the history
  60. Fix error code

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    0f8897c View commit details
    Browse the repository at this point in the history
  61. Fix error message string

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    9556fac View commit details
    Browse the repository at this point in the history
  62. Fix tests

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    93b9b1a View commit details
    Browse the repository at this point in the history
  63. Update rename State in docs

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    ae1856c View commit details
    Browse the repository at this point in the history
  64. Fix tests

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    be0a9b8 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    ff99685 View commit details
    Browse the repository at this point in the history
  66. Update comment

    Zoxc committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    416096d View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    06ce77c View commit details
    Browse the repository at this point in the history
  68. Remove IsGenerator in favor of a boolean

    No need to be mixed!
    alexcrichton committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    9285a61 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2017

  1. Use a free error code

    alexcrichton committed Jul 29, 2017
    Configuration menu
    Copy the full SHA
    cc4ff8f View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2017

  1. Configuration menu
    Copy the full SHA
    c25ddf2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    352577f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f72724e View commit details
    Browse the repository at this point in the history
  4. Add UI test outputs

    alexcrichton committed Aug 9, 2017
    Configuration menu
    Copy the full SHA
    e181060 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    be95ca4 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2017

  1. Configuration menu
    Copy the full SHA
    b8aa595 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2017

  1. Fix merge of scope.rs

    Zoxc committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    2d30e7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ffcd32c View commit details
    Browse the repository at this point in the history
  3. Some tweaks and comments

    Zoxc committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    bbe1552 View commit details
    Browse the repository at this point in the history
  4. Typo

    Zoxc committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    91dde3e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    be9c64b View commit details
    Browse the repository at this point in the history
  6. Remove allocations

    Zoxc committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    6601ab9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    54db165 View commit details
    Browse the repository at this point in the history
  8. Please tidy

    Zoxc committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    2e3eaca View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2b04afb View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3971a3d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    84af3d8 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2017

  1. Configuration menu
    Copy the full SHA
    fa18aa3 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/rust-lang/rust into gen

    # Conflicts:
    #	src/librustc_mir/build/scope.rs
    Zoxc committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    d020ff0 View commit details
    Browse the repository at this point in the history
  3. Fix errors

    Zoxc committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    1787d4e View commit details
    Browse the repository at this point in the history
  4. Fix UI test

    alexcrichton committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    6eab1ca View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2017

  1. Configuration menu
    Copy the full SHA
    eff2884 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b045c20 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2017

  1. Configuration menu
    Copy the full SHA
    1413253 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22ebcac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6b9690 View commit details
    Browse the repository at this point in the history
  4. Remove fixme

    Zoxc committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    17197c6 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2017

  1. Configuration menu
    Copy the full SHA
    1210ebf View commit details
    Browse the repository at this point in the history
  2. Fix merge conflict

    alexcrichton committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    0697e4b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5f4a99f View commit details
    Browse the repository at this point in the history
  4. Fix merge conflicts

    alexcrichton committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    63477fd View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2017

  1. Configuration menu
    Copy the full SHA
    4b5f330 View commit details
    Browse the repository at this point in the history
  2. Fix UI tests

    alexcrichton committed Aug 17, 2017
    Configuration menu
    Copy the full SHA
    a47038f View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2017

  1. Fix more UI tests

    alexcrichton committed Aug 18, 2017
    Configuration menu
    Copy the full SHA
    9620d26 View commit details
    Browse the repository at this point in the history
  2. Fix a diagnostic

    alexcrichton committed Aug 18, 2017
    Configuration menu
    Copy the full SHA
    e70cc27 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2017

  1. Configuration menu
    Copy the full SHA
    bf3ebcc View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2017

  1. Configuration menu
    Copy the full SHA
    b31998e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    35b8dba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dc9d71 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2017

  1. Configuration menu
    Copy the full SHA
    04c66c3 View commit details
    Browse the repository at this point in the history
  2. More merge conflicts

    alexcrichton committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    c74ff32 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2017

  1. Configuration menu
    Copy the full SHA
    0727ade View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b44e51c View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2017

  1. Configuration menu
    Copy the full SHA
    c872f47 View commit details
    Browse the repository at this point in the history
  2. Fix indentation

    alexcrichton committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    b28aeeb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    303a264 View commit details
    Browse the repository at this point in the history
  4. Fix merge conflict

    alexcrichton committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    8c97ffa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    74b93f3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ed5bc60 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1917ffe View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b4c5471 View commit details
    Browse the repository at this point in the history
  9. Add some comments and fix a typo

    Zoxc committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    c711531 View commit details
    Browse the repository at this point in the history
  10. Clean up YieldFinder

    Zoxc committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    5366135 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2017

  1. Update rls

    Zoxc committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    7c5780b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d29af37 View commit details
    Browse the repository at this point in the history
  3. Update lock file

    alexcrichton committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    8a9e32b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9eff522 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    876278f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a996d5e View commit details
    Browse the repository at this point in the history