Skip to content

Commit

Permalink
build fragmented map earlier to make its dependencies clearer.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Jul 28, 2015
1 parent 494ce37 commit 22796c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/librustc_borrowck/borrowck/mod.rs
Expand Up @@ -166,6 +166,9 @@ fn borrowck_fn(this: &mut BorrowckCtxt,
this.tcx,
sp,
id);
move_data::fragments::build_unfragmented_map(this,
&flowed_moves.move_data,
id);

check_loans::check_loans(this,
&loan_dfcx,
Expand All @@ -175,10 +178,6 @@ fn borrowck_fn(this: &mut BorrowckCtxt,
decl,
body);

move_data::fragments::build_unfragmented_map(this,
&flowed_moves.move_data,
id);

visit::walk_fn(this, fk, decl, body, sp);
}

Expand Down

0 comments on commit 22796c8

Please sign in to comment.