about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-06-30 08:09:25 -0400
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-07-28 16:15:56 +0200
commit22796c8bade7d44c4e28d1e48196065705a2de60 (patch)
tree0f33444b36b33b58321c1fc0f344829047f1ab2c /src
parent494ce37ffe2e5af63a4701f6d60faa3bc24597f1 (diff)
downloadrust-22796c8bade7d44c4e28d1e48196065705a2de60.tar.gz
rust-22796c8bade7d44c4e28d1e48196065705a2de60.zip
build fragmented map earlier to make its dependencies clearer.
Diffstat (limited to 'src')
-rw-r--r--src/librustc_borrowck/borrowck/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librustc_borrowck/borrowck/mod.rs b/src/librustc_borrowck/borrowck/mod.rs
index 994393d0650..78e4945d4b5 100644
--- a/src/librustc_borrowck/borrowck/mod.rs
+++ b/src/librustc_borrowck/borrowck/mod.rs
@@ -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,
@@ -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);
 }