Skip to content

Commit 2b9fea1

Browse files
committed
move the drop expansion code to rustc_mir
1 parent e1f3c67 commit 2b9fea1

File tree

15 files changed

+728
-621
lines changed

15 files changed

+728
-621
lines changed

src/librustc_borrowck/borrowck/mir/dataflow/graphviz.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use rustc::mir::{BasicBlock, Mir};
1515
use rustc_data_structures::bitslice::bits_to_string;
1616
use rustc_data_structures::indexed_set::{IdxSet};
1717
use rustc_data_structures::indexed_vec::Idx;
18+
use rustc_mir::util as mir_util;
1819

1920
use dot;
2021
use dot::IntoCow;
@@ -219,7 +220,7 @@ impl<'a, 'tcx, MWF, P> dot::Labeller<'a> for Graph<'a, 'tcx, MWF, P>
219220
}
220221
Ok(())
221222
}
222-
::rustc_mir::graphviz::write_node_label(
223+
mir_util::write_graphviz_node_label(
223224
*n, self.mbcx.mir(), &mut v, 4,
224225
|w| {
225226
let flow = self.mbcx.flow_state();

src/librustc_borrowck/borrowck/mir/dataflow/impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ use rustc_data_structures::bitslice::BitSlice; // adds set_bit/get_bit to &[usiz
1414
use rustc_data_structures::bitslice::{BitwiseOperator};
1515
use rustc_data_structures::indexed_set::{IdxSet};
1616
use rustc_data_structures::indexed_vec::Idx;
17+
use rustc_mir::util::elaborate_drops::DropFlagState;
1718

1819
use super::super::gather_moves::{HasMoveData, MoveData, MoveOutIndex, MovePathIndex};
1920
use super::super::MoveDataParamEnv;
20-
use super::super::DropFlagState;
2121
use super::super::drop_flag_effects_for_function_entry;
2222
use super::super::drop_flag_effects_for_location;
2323
use super::super::on_lookup_result_bits;

0 commit comments

Comments
 (0)