mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Update librustc_driver/test.rs
This commit is contained in:
parent
ce089e50a4
commit
c64bda3227
|
@ -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, &tcx.tables, None);
|
||||
let infcx = infer::new_infer_ctxt(tcx, &tcx.tables, None, false);
|
||||
body(Env { infcx: &infcx });
|
||||
let free_regions = FreeRegionMap::new();
|
||||
infcx.resolve_regions_and_report_errors(&free_regions, ast::CRATE_NODE_ID);
|
||||
|
|
Loading…
Reference in a new issue