]> git.lizzy.rs Git - rust.git/commit
re-introduce a cache for ast-ty-to-ty
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 12 May 2016 18:19:26 +0000 (14:19 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 12 May 2016 18:23:26 +0000 (14:23 -0400)
commitaa00e3a552d453f8af0d033d6207a0e09d159d2e
tree0a19e17062d44baf5da8f0f8c434e7fff53896e0
parente88defe71806ad190588e168e513bc1098f7c9fb
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 #33425.
src/librustc_resolve/lib.rs
src/librustc_typeck/astconv.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/collect.rs
src/librustc_typeck/lib.rs
src/test/run-pass/associated-types-in-bound-type-arg.rs [new file with mode: 0644]