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

re-introduce a cache for ast-ty-to-ty #33596

Merged

Conversation

nikomatsakis
Copy link
Contributor

@nikomatsakis nikomatsakis commented May 12, 2016

It turns out that ast_ty_to_ty is supposed to be updating the def
after it finishes, but at some point in the past it stopped doing
so. This was never noticed because of the ast_ty_to_ty_cache, but that
cache was recently removed. This PR fixes the code to update the def
properly, but apparently that is not quite enough to make the operation
idempotent, so for now we reintroduce the cache too.

Fixes #33586.

r? @eddyb

It turns out that `ast_ty_to_ty` is supposed to be updating the `def`
after it finishes, but at some point in the past it stopped doing
so. This was never noticed because of the `ast_ty_to_ty_cache`, but that
cache was recently removed. This PR fixes the code to update the def
properly, but apparently that is not quite enough to make the operation
idempotent, so for now we reintroduce the cache too.

Fixes rust-lang#33425.
@eddyb
Copy link
Member

eddyb commented May 12, 2016

@bors r+

@bors
Copy link
Contributor

bors commented May 12, 2016

📌 Commit aa00e3a has been approved by eddyb

eddyb added a commit to eddyb/rust that referenced this pull request May 12, 2016
…-type-path, r=eddyb

re-introduce a cache for ast-ty-to-ty

It turns out that `ast_ty_to_ty` is supposed to be updating the `def`
after it finishes, but at some point in the past it stopped doing
so. This was never noticed because of the `ast_ty_to_ty_cache`, but that
cache was recently removed. This PR fixes the code to update the def
properly, but apparently that is not quite enough to make the operation
idempotent, so for now we reintroduce the cache too.

Fixes rust-lang#33425.

r? @eddyb
bors added a commit that referenced this pull request May 12, 2016
@bluss
Copy link
Member

bluss commented May 12, 2016

Fixes #33586 actually (correct id). I didn't edit the parent since the text has already been copied into a roll up anyway(?)

@nikomatsakis
Copy link
Contributor Author

@bluss thanks :) not sure what happened there

@eddyb
Copy link
Member

eddyb commented May 12, 2016

The rollup failed anyway :(.

@eddyb
Copy link
Member

eddyb commented May 13, 2016

@bors p=2 (unbreaks the world)

eddyb added a commit to eddyb/rust that referenced this pull request May 13, 2016
…-type-path, r=eddyb

re-introduce a cache for ast-ty-to-ty

It turns out that `ast_ty_to_ty` is supposed to be updating the `def`
after it finishes, but at some point in the past it stopped doing
so. This was never noticed because of the `ast_ty_to_ty_cache`, but that
cache was recently removed. This PR fixes the code to update the def
properly, but apparently that is not quite enough to make the operation
idempotent, so for now we reintroduce the cache too.

Fixes rust-lang#33586.

r? @eddyb
@bors
Copy link
Contributor

bors commented May 13, 2016

⌛ Testing commit aa00e3a with merge 709e5c5...

bors added a commit that referenced this pull request May 13, 2016
… r=eddyb

re-introduce a cache for ast-ty-to-ty

It turns out that `ast_ty_to_ty` is supposed to be updating the `def`
after it finishes, but at some point in the past it stopped doing
so. This was never noticed because of the `ast_ty_to_ty_cache`, but that
cache was recently removed. This PR fixes the code to update the def
properly, but apparently that is not quite enough to make the operation
idempotent, so for now we reintroduce the cache too.

Fixes #33586.

r? @eddyb
@bors bors merged commit aa00e3a into rust-lang:master May 13, 2016
@nikomatsakis nikomatsakis deleted the issue-33586-regr-assoc-type-path branch October 3, 2016 14:56
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.

regression around trait bounds with associated types
4 participants