]> git.lizzy.rs Git - rust.git/commit
move the trans trait caches into tcx
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 17 Apr 2017 16:35:53 +0000 (12:35 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Fri, 21 Apr 2017 21:26:53 +0000 (17:26 -0400)
commitf4c183b742cf08c5d06d50b4fbada3561722af81
treeca7e0426a573623dff194fd8fc5908c25cfbedca
parente48a759f51ae23f817339eda1485fa3afe6d8d04
move the trans trait caches into tcx

Arguably these could become custom queries, but I chose not to do that
because the relationship of queries and trait system is not yet fleshed
out enough. For now it seems fine to have them be `DepTrackingMap` using
the memoize pattern.
src/librustc/traits/mod.rs
src/librustc/traits/trans/mod.rs [new file with mode: 0644]
src/librustc/ty/context.rs
src/librustc_trans/context.rs
src/librustc_trans/monomorphize.rs