Skip to content

Commit 22796c8

Browse files
committed
build fragmented map earlier to make its dependencies clearer.
1 parent 494ce37 commit 22796c8

File tree

1 file changed

+3
-4
lines changed
  • src/librustc_borrowck/borrowck

1 file changed

+3
-4
lines changed

src/librustc_borrowck/borrowck/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ fn borrowck_fn(this: &mut BorrowckCtxt,
166166
this.tcx,
167167
sp,
168168
id);
169+
move_data::fragments::build_unfragmented_map(this,
170+
&flowed_moves.move_data,
171+
id);
169172

170173
check_loans::check_loans(this,
171174
&loan_dfcx,
@@ -175,10 +178,6 @@ fn borrowck_fn(this: &mut BorrowckCtxt,
175178
decl,
176179
body);
177180

178-
move_data::fragments::build_unfragmented_map(this,
179-
&flowed_moves.move_data,
180-
id);
181-
182181
visit::walk_fn(this, fk, decl, body, sp);
183182
}
184183

0 commit comments

Comments
 (0)