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

Register new snapshots #12674

Merged
merged 1 commit into from
Mar 4, 2014
Merged

Register new snapshots #12674

merged 1 commit into from
Mar 4, 2014

Conversation

alexcrichton
Copy link
Member

This should fix the travis builds.

This should fix the travis builds.
bors added a commit that referenced this pull request Mar 4, 2014
@bors bors closed this Mar 4, 2014
@bors bors merged commit b0e0cb5 into rust-lang:master Mar 4, 2014
@alexcrichton alexcrichton deleted the snapshots branch March 4, 2014 06:13
notriddle pushed a commit to notriddle/rust that referenced this pull request Sep 20, 2022
…odiebold

fix: handle lifetime variables in projection normalization

Fixes rust-lang#12674

The problem is that we've been skipping the binders of normalized projections assuming they should be empty, but the assumption is unfortunately wrong. We may get back lifetime variables and should handle them before returning them as normalized projections. For those who are curious why we get those even though we treat all lifetimes as 'static, [this comment in chalk](https://github.com/rust-lang/chalk/blob/d875af0ff196dd6430b5f5fd87a640fa5ab59d1e/chalk-solve/src/infer/unify.rs#L888-L908) may be interesting.

I thought using `InferenceTable` would be cleaner than the other ways as it already has the methods for canonicalization, normalizing projection, and resolving variables, so moved goal building and trait solving logic to a new `HirDatabase` query. I made it transparent query as the query itself doesn't do much work but the eventual call to `HirDatabase::trait_solve_query()` does.
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.

None yet

2 participants