Skip to content

Commit

Permalink
move the drop expansion code to rustc_mir
Browse files Browse the repository at this point in the history
  • Loading branch information
arielb1 committed Mar 18, 2017
1 parent e1f3c67 commit 2b9fea1
Show file tree
Hide file tree
Showing 15 changed files with 728 additions and 621 deletions.
3 changes: 2 additions & 1 deletion src/librustc_borrowck/borrowck/mir/dataflow/graphviz.rs
Expand Up @@ -15,6 +15,7 @@ use rustc::mir::{BasicBlock, Mir};
use rustc_data_structures::bitslice::bits_to_string;
use rustc_data_structures::indexed_set::{IdxSet};
use rustc_data_structures::indexed_vec::Idx;
use rustc_mir::util as mir_util;

use dot;
use dot::IntoCow;
Expand Down Expand Up @@ -219,7 +220,7 @@ impl<'a, 'tcx, MWF, P> dot::Labeller<'a> for Graph<'a, 'tcx, MWF, P>
}
Ok(())
}
::rustc_mir::graphviz::write_node_label(
mir_util::write_graphviz_node_label(
*n, self.mbcx.mir(), &mut v, 4,
|w| {
let flow = self.mbcx.flow_state();
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_borrowck/borrowck/mir/dataflow/impls.rs
Expand Up @@ -14,10 +14,10 @@ use rustc_data_structures::bitslice::BitSlice; // adds set_bit/get_bit to &[usiz
use rustc_data_structures::bitslice::{BitwiseOperator};
use rustc_data_structures::indexed_set::{IdxSet};
use rustc_data_structures::indexed_vec::Idx;
use rustc_mir::util::elaborate_drops::DropFlagState;

use super::super::gather_moves::{HasMoveData, MoveData, MoveOutIndex, MovePathIndex};
use super::super::MoveDataParamEnv;
use super::super::DropFlagState;
use super::super::drop_flag_effects_for_function_entry;
use super::super::drop_flag_effects_for_location;
use super::super::on_lookup_result_bits;
Expand Down

0 comments on commit 2b9fea1

Please sign in to comment.