]> git.lizzy.rs Git - rust.git/commit
auto merge of #8669 : lkuper/rust/infer-refactor, r=nikomatsakis
authorbors <bors@rust-lang.org>
Thu, 22 Aug 2013 17:31:25 +0000 (10:31 -0700)
committerbors <bors@rust-lang.org>
Thu, 22 Aug 2013 17:31:25 +0000 (10:31 -0700)
commit063a005459a3ece4022e1fdb6400548c7ad2358e
tree167835381de505dd715ef4e4ce42b9b4066e17e5
parent5003f607ec7386ba9a150e1bafb7d389de62d9ff
parent3613c22c8cb9ee37955352c1fde79457c0a211f6
auto merge of #8669 : lkuper/rust/infer-refactor, r=nikomatsakis

This commit removes the "super_*" functions from
typeck::infer::combine, and adds them as default methods on the
Combine trait instead, making it possible to remove a lot of
boilerplate from the various impls of Combine.

I've been wanting to do this for over a year.  In fact, it was my
original motivation for default methods!

It might be possible to tighten things up even more, but this is the
bulk of it.