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

Beta cherrypick #24942

Closed
wants to merge 2 commits into from
Closed

Beta cherrypick #24942

wants to merge 2 commits into from

Conversation

pnkfelix
Copy link
Member

This PR is a cherry-pick of PR #24553, which has gone through the beta-nomination and beta-acceptance process. (It just missed being part of the mass cherry-pick in #24708 because I had not yet reviewed it at that time.)

It should not be marked with the usual bors commands (i.e. no "r+" messages to at-bors); it instead will be merged manually after I had double checked that it builds locally.

(In fact, some local experimentation indicates sending even a "try" to at-bors could confuse github as to the mergability of the PR, see #24941 )

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.

----

This is cherry-pick of commit 6dfeda7 from PR rust-lang#24553

Manually resolved conflicts in:
  src/librustc/lib.rs
  src/librustc/middle/infer/region_inference/mod.rs
(both conflicts were related to changes to file structure.)
This is a cherry-pick of commit 55ffd2e from PR rust-lang#24553
@rust-highfive
Copy link
Collaborator

r? @nrc

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Member Author

okay, clearly it was not the "try" to at-bors that was confusing things... I'll go review what @alexcrichton did on his big cherry-pick earlier.

@alexcrichton
Copy link
Member

Yeah unfortunately we don't have any automation to gate this before it goes in, but the beta builders run all tests before publishing artifacts. Other than that though it looks like this is good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants