]> git.lizzy.rs Git - rust.git/commit
Teach project to unify the return type even if a precise match is not
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 3 Feb 2015 11:12:43 +0000 (06:12 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 3 Feb 2015 16:55:45 +0000 (11:55 -0500)
commit498595a3dc90b7df08e90b04278b4de33c5ab3cf
tree9cb3d8a2361408a06f323cf75a3014f28b9d9e04
parentc9e1c445dbcbfc9c938488a79ef12595e0f99c8d
Teach project to unify the return type even if a precise match is not
possible.  There is some amount of duplication as a result (similar to
select) -- I am not happy about this but not sure how to fix it
without deeper rewrites.
src/librustc/middle/traits/project.rs
src/librustc/middle/traits/select.rs
src/test/run-pass/closure-inference.rs
src/test/run-pass/last-use-in-cap-clause.rs
src/test/run-pass/unboxed-closures-zero-args.rs