Skip to content

Commit

Permalink
Rename resolve_regions to resolve_regions_and_report_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed May 9, 2014
1 parent ab369c4 commit fa43727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/typeck/check/regionck.rs
Expand Up @@ -299,7 +299,7 @@ pub fn regionck_expr(fcx: &FnCtxt, e: &ast::Expr) {
// regionck assumes typeck succeeded
rcx.visit_expr(e, ());
}
fcx.infcx().resolve_regions();
fcx.infcx().resolve_regions_and_report_errors();
}

pub fn regionck_fn(fcx: &FnCtxt, blk: &ast::Block) {
Expand All @@ -309,7 +309,7 @@ pub fn regionck_fn(fcx: &FnCtxt, blk: &ast::Block) {
// regionck assumes typeck succeeded
rcx.visit_block(blk, ());
}
fcx.infcx().resolve_regions();
fcx.infcx().resolve_regions_and_report_errors();
}

impl<'a> Visitor<()> for Rcx<'a> {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/middle/typeck/infer/mod.rs
Expand Up @@ -644,7 +644,7 @@ impl<'a> InferCtxt<'a> {
self.region_vars.new_bound(binder_id)
}

pub fn resolve_regions(&self) {
pub fn resolve_regions_and_report_errors(&self) {
let errors = self.region_vars.resolve_regions();
self.report_region_errors(&errors); // see error_reporting.rs
}
Expand Down

0 comments on commit fa43727

Please sign in to comment.