-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Refactorings in preparation for the removal of the leak check #50397
Merged
bors
merged 10 commits into
rust-lang:master
from
sgrif:sg-smaller-universe-refactorings
May 4, 2018
Merged
Refactorings in preparation for the removal of the leak check #50397
bors
merged 10 commits into
rust-lang:master
from
sgrif:sg-smaller-universe-refactorings
May 4, 2018
Commits on May 2, 2018
-
introduce
UniverseIndex
intoInferCtxt
Always using root environment for now.
Configuration menu - View commit details
-
Copy full SHA for df8f537 - Browse repository at this point
Copy the full SHA df8f537View commit details -
add universes to type inference variables
This gives each type inference variable a notion of universe but doesn't do anything with it. We can always get the "current universe" from infer_ctxt. This relies on the property of type variables that they can never interact with siblings.
Configuration menu - View commit details
-
Copy full SHA for e904d56 - Browse repository at this point
Copy the full SHA e904d56View commit details -
change skolemizations to use universe index
This is sort of confusing "side step". All it does is to change the representation of a skolemized region. but the source of that universe index is not the inference context, which is what we eventually want, but rather an internal counter in the region inference context. We'll patch that up later. But doing this now ought to help with confusing diffs later.
Configuration menu - View commit details
-
Copy full SHA for 360cbf2 - Browse repository at this point
Copy the full SHA 360cbf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6234a89 - Browse repository at this point
Copy the full SHA 6234a89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f69b79 - Browse repository at this point
Copy the full SHA 2f69b79View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce64f9d - Browse repository at this point
Copy the full SHA ce64f9dView commit details -
Wrap
InferCtxt::universe
in a cellWe'll need this in order to start tracking skolemizatoins here, and it's easier to update all the field accesses now rather than later.
Configuration menu - View commit details
-
Copy full SHA for f5d240b - Browse repository at this point
Copy the full SHA f5d240bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04708ba - Browse repository at this point
Copy the full SHA 04708baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ac9717 - Browse repository at this point
Copy the full SHA 4ac9717View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68a1fdf - Browse repository at this point
Copy the full SHA 68a1fdfView commit details
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.