]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #18483 : eddyb/rust/safe-ty, r=nikomatsakis
authorbors <bors@rust-lang.org>
Wed, 19 Nov 2014 07:21:42 +0000 (07:21 +0000)
committerbors <bors@rust-lang.org>
Wed, 19 Nov 2014 07:21:42 +0000 (07:21 +0000)
After more than a month of sitting on this patch, rebasing and tracking down some nasty bugs (there's might be still one out there, but it only manifested in `middle::trans::reflect` which is now gone), I'd like to merge it as it is.

This changeset makes middle::ty safe, linking the lifetime of a type to the type context it was created in.
It's a prerequisite for introducing function-local type contexts to localize types with inference variables, in order to (potentially) free hundreds of MBs from rustc's memory usage peak.


Trivial merge