]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/borrow_check/location.rs
Rollup merge of #61704 - petrhosek:llvm-linker-flags, r=alexcrichton
[rust.git] / src / librustc_mir / borrow_check / location.rs
index 20a477576c95c4a7f976d917248571a43e5ef6e3..cc44dc3f5d46bd34be686d7bcea9a36281710d7e 100644 (file)
@@ -1,4 +1,4 @@
-use rustc::mir::{BasicBlock, Location, Mir};
+use rustc::mir::{BasicBlock, Location, Body};
 use rustc_data_structures::indexed_vec::{Idx, IndexVec};
 
 /// Maps between a MIR Location, which identifies a particular
@@ -30,9 +30,9 @@ pub struct LocationIndex {
 }
 
 impl LocationTable {
-    crate fn new(mir: &Mir<'_>) -> Self {
+    crate fn new(body: &Body<'_>) -> Self {
         let mut num_points = 0;
-        let statements_before_block = mir.basic_blocks()
+        let statements_before_block = body.basic_blocks()
             .iter()
             .map(|block_data| {
                 let v = num_points;