Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix rustc_driver tests
  • Loading branch information
nikomatsakis committed Apr 24, 2015
1 parent 6dfeda7 commit 55ffd2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc_driver/test.rs
Expand Up @@ -16,6 +16,7 @@ use driver;
use rustc_lint;
use rustc_resolve as resolve;
use rustc_typeck::middle::lang_items;
use rustc_typeck::middle::free_region::FreeRegionMap;
use rustc_typeck::middle::region::{self, CodeExtent, DestructionScopeData};
use rustc_typeck::middle::resolve_lifetime;
use rustc_typeck::middle::stability;
Expand Down Expand Up @@ -138,7 +139,8 @@ fn test_env<F>(source_string: &str,
stability::Index::new(krate));
let infcx = infer::new_infer_ctxt(&tcx);
body(Env { infcx: &infcx });
infcx.resolve_regions_and_report_errors(ast::CRATE_NODE_ID);
let free_regions = FreeRegionMap::new();
infcx.resolve_regions_and_report_errors(&free_regions, ast::CRATE_NODE_ID);
assert_eq!(tcx.sess.err_count(), expected_err_count);
}

Expand Down

0 comments on commit 55ffd2e

Please sign in to comment.