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

[rfc 2229] Drop fully captured upvars in the same order as the regular drop code #89208

Merged
merged 4 commits into from
Sep 25, 2021

Commits on Sep 23, 2021

  1. Configuration menu
    Copy the full SHA
    7a3e450 View commit details
    Browse the repository at this point in the history
  2. Drop fully captured upvars in the same order as the regular drop code

    Currently, with the new 2021 edition, if a closure captures all of the
    fields of an upvar, we'll drop those fields in the order they are used
    within the closure instead of the normal drop order (the definition
    order of the fields in the type).
    
    This changes that so we sort the captured fields by the definition order
    which causes them to drop in that same order as well.
    
    Fixes rust-lang/project-rfc-2229#42
    wesleywiser committed Sep 23, 2021
    Configuration menu
    Copy the full SHA
    ab8aef4 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2021

  1. Configuration menu
    Copy the full SHA
    3893656 View commit details
    Browse the repository at this point in the history
  2. Update and add more tests

    wesleywiser committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    dd91804 View commit details
    Browse the repository at this point in the history