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

Translate closures through the collector #37675

Merged
merged 4 commits into from
Nov 13, 2016
Merged

Commits on Nov 12, 2016

  1. rustc: move closure upvar types to the closure substs

    This moves closures to the (DefId, Substs) scheme like all other items,
    and saves a word from the size of TyS now that Substs is 2 words.
    arielb1 committed Nov 12, 2016
    Configuration menu
    Copy the full SHA
    ca9b566 View commit details
    Browse the repository at this point in the history
  2. rustc_typeck: register item types for closures

    This makes them closer to actual items and allows for more
    transparent treatment.
    arielb1 committed Nov 12, 2016
    Configuration menu
    Copy the full SHA
    b6828fd View commit details
    Browse the repository at this point in the history
  3. rustc_trans: translate closures using the collector

    Translate closures like normal functions, using the trans::collector
    interface.
    arielb1 committed Nov 12, 2016
    Configuration menu
    Copy the full SHA
    5795098 View commit details
    Browse the repository at this point in the history
  4. address review comments

    arielb1 committed Nov 12, 2016
    Configuration menu
    Copy the full SHA
    d394e75 View commit details
    Browse the repository at this point in the history