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

Introduce a FreeRegionMap to store relations between free regions #24553

Merged
merged 2 commits into from
Apr 24, 2015

Commits on Apr 18, 2015

  1. Rather than storing the relations between free-regions in a global

    table, introduce a `FreeRegionMap` data structure. regionck computes the
    `FreeRegionMap` for each fn and stores the result into the tcx so that
    borrowck can use it (this could perhaps be refactored to have borrowck
    recompute the map, but it's a bid tedious to recompute due to the
    interaction of closures and free fns). The main reason to do this is
    because of rust-lang#22779 -- using a global table was incorrect because when
    validating impl method signatures, we want to use the free region
    relationships from the *trait*, not the impl.
    
    Fixes rust-lang#22779.
    nikomatsakis committed Apr 18, 2015
    Configuration menu
    Copy the full SHA
    6dfeda7 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2015

  1. fix rustc_driver tests

    nikomatsakis committed Apr 24, 2015
    Configuration menu
    Copy the full SHA
    55ffd2e View commit details
    Browse the repository at this point in the history