]> git.lizzy.rs Git - rust.git/commit
rustc_typeck: unify expected return types with formal return types to propagate coerc...
authorEduard Burtescu <edy.burt@gmail.com>
Thu, 8 Jan 2015 16:25:52 +0000 (18:25 +0200)
committerEduard Burtescu <edy.burt@gmail.com>
Sun, 11 Jan 2015 20:09:46 +0000 (22:09 +0200)
commite73fbc69cd85ccd7e444929b7b7aa0ae74ee6198
treec2342320ca949eaada24e199ff13abc85d7f3834
parent21ec0c85d94b259e6bd4efa19b66b39ab5ed61e4
rustc_typeck: unify expected return types with formal return types to propagate coercions through calls of generic functions.
src/librustc/middle/infer/mod.rs
src/librustc_typeck/check/callee.rs
src/librustc_typeck/check/mod.rs
src/test/run-pass/coerce-expect-unsized.rs
src/test/run-pass/coerce-unify-return.rs [new file with mode: 0644]