Fix librustc_driver/test.rs

This commit is contained in:
Jared Roesch
2015-06-28 14:08:50 -07:00
parent 15bc4a30c3
commit 5c3753f6b4
+1 -1
View File
@@ -140,7 +140,7 @@ fn test_env<F>(source_string: &str,
lang_items,
stability::Index::new(krate),
|tcx| {
let infcx = infer::new_infer_ctxt(tcx);
let infcx = infer::new_infer_ctxt(tcx, &tcx.tables, None);
body(Env { infcx: &infcx });
let free_regions = FreeRegionMap::new();
infcx.resolve_regions_and_report_errors(&free_regions, ast::CRATE_NODE_ID);