diff options
| author | Michael Sullivan <sully@msully.net> | 2011-08-10 19:49:58 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2011-08-10 20:18:07 -0700 |
| commit | c5c8258937f056a0f4b0e83e1d878c268daa09ff (patch) | |
| tree | 73bc30ec51c250d4f043d437bf322cfb0219b752 /src/rustllvm/RustGCMetadataPrinter.cpp | |
| parent | 67e361a9408c5226bdeccf49c958811dcad59405 (diff) | |
| download | rust-c5c8258937f056a0f4b0e83e1d878c268daa09ff.tar.gz rust-c5c8258937f056a0f4b0e83e1d878c268daa09ff.zip | |
Rework check_expr substantially.
The bulk of check_expr is now check_expr_with_unifier, which takes an expected type and a unification function and will perform the unification on the type it produces. check_expr calls check_expr_with_unifier with a dummy unifier and a new function, check_expr_with, takes an expected type and uses the simple unifier. I think this generally makes thing cleaner, but the purpose for doing this is to enable type inferred lambda-blocks to be useful by allowing the argument types to be unified before the body of the lambda is checked.
Diffstat (limited to 'src/rustllvm/RustGCMetadataPrinter.cpp')
0 files changed, 0 insertions, 0 deletions
