diff options
| author | Lindsey Kuper <lindsey@composition.al> | 2013-08-21 03:10:16 -0400 |
|---|---|---|
| committer | Lindsey Kuper <lindsey@composition.al> | 2013-08-21 13:33:30 -0400 |
| commit | 3613c22c8cb9ee37955352c1fde79457c0a211f6 (patch) | |
| tree | bfe5eb1d24c0fb88e155a5636743c16a8c885ac8 /src/rustllvm/PassWrapper.cpp | |
| parent | bf90634087e8f4015176d8e6be53794768d5c6ec (diff) | |
| download | rust-3613c22c8cb9ee37955352c1fde79457c0a211f6.tar.gz rust-3613c22c8cb9ee37955352c1fde79457c0a211f6.zip | |
Refactor type combining to use default methods. Woohoo!
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.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
