-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
extend NLL with preliminary support for free regions on functions #45668
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Oct 31, 2017
nikomatsakis
force-pushed
the
nll-free-region
branch
from
October 31, 2017 20:15
9ca6dbe
to
2288312
Compare
kennytm
added
the
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
label
Nov 1, 2017
This way, NLL can report them later.
Notably, the (hitherto unused) `less_than` method was not at all what it purported to be. It in fact computes the opposite.
nikomatsakis
force-pushed
the
nll-free-region
branch
from
November 2, 2017 08:42
7bbf680
to
67c0eab
Compare
nikomatsakis
changed the title
[WIP] extend NLL with preliminary support for free regions on functions
extend NLL with preliminary support for free regions on functions
Nov 2, 2017
kennytm
added
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
and removed
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
labels
Nov 2, 2017
This lets us inspect the regions we infer around named arguments.
Actually, I meant to make this use `delay_span_bug`
nikomatsakis
force-pushed
the
nll-free-region
branch
from
November 2, 2017 14:34
67c0eab
to
7b4282e
Compare
review ping @arielb1, pinging you on IRC too! |
@bors r+ |
📌 Commit 7b4282e has been approved by |
@bors p=1 Giving this higher priority because it's a building block for other PRs in/around non-lexical lifetimes, and because NLL in general is a very high priority item. |
bors
added a commit
that referenced
this pull request
Nov 6, 2017
extend NLL with preliminary support for free regions on functions This PR extends #45538 with support for free regions. This is pretty preliminary and will no doubt want to change in various ways, particularly as we add support for closures, but it's enough to get the basic idea in place: - We now create specific regions to represent each named lifetime declared on the function. - Region values can contain references to these regions (represented for now as a `BTreeSet<RegionIndex>`). - If we wind up trying to infer that `'a: 'b` must hold, but no such relationship was declared, we report an error. It also does a number of drive-by refactorings. r? @arielb1 cc @spastorino
kennytm
added
S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
labels
Nov 7, 2017
☀️ Test successful - status-appveyor, status-travis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR extends #45538 with support for free regions. This is pretty preliminary and will no doubt want to change in various ways, particularly as we add support for closures, but it's enough to get the basic idea in place:
BTreeSet<RegionIndex>
).'a: 'b
must hold, but no such relationship was declared, we report an error.It also does a number of drive-by refactorings.
r? @arielb1
cc @spastorino