]> git.lizzy.rs Git - rust.git/commit
Auto merge of #24209 - nikomatsakis:refactor-unification, r=nrc
authorbors <bors@rust-lang.org>
Sat, 18 Apr 2015 04:57:56 +0000 (04:57 +0000)
committerbors <bors@rust-lang.org>
Sat, 18 Apr 2015 04:57:56 +0000 (04:57 +0000)
commit77213d1b28b307401d2bbb143168418bf7e6794c
treec191a85069e53bb24f06b335f17402215590a946
parentefa6a46a8eceb4ab792d5ec8e28cf3baaaa96491
parente47fb489c10f2d86216c3a75ad6cbde3742e9f0c
Auto merge of #24209 - nikomatsakis:refactor-unification, r=nrc

I'm on a quest to slowly refactor a lot of the inference code. A first step for that is moving the "pure data structures" out so as to simplify what's left. This PR moves `snapshot_vec`, `graph`, and `unify` into their own crate (`librustc_data_structures`). They can then be unit-tested, benchmarked, etc more easily. As a benefit, I improved the performance of unification slightly on the benchmark I added vs the original code.

r? @nrc