rustc: Pass a "type context" around instead of directly passing the type store; prep for removing type annotations
This commit is contained in:
parent
b258060a94
commit
e102413aad
7 changed files with 787 additions and 834 deletions
|
|
@ -73,13 +73,13 @@ fn compile_input(session.session sess,
|
|||
crate = resolve.resolve_crate(sess, crate);
|
||||
capture.check_for_captures(sess, crate);
|
||||
|
||||
auto tystore = ty.mk_type_store();
|
||||
auto typeck_result = typeck.check_crate(sess, tystore, crate);
|
||||
auto ty_cx = ty.mk_ctxt();
|
||||
auto typeck_result = typeck.check_crate(sess, ty_cx, crate);
|
||||
crate = typeck_result._0;
|
||||
auto type_cache = typeck_result._1;
|
||||
// FIXME: uncomment once typestate_check works
|
||||
// crate = typestate_check.check_crate(crate);
|
||||
trans.trans_crate(sess, crate, tystore, type_cache, output, shared,
|
||||
trans.trans_crate(sess, crate, ty_cx, type_cache, output, shared,
|
||||
optimize, verify, ot);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue