Address review comments
- Add back `HirIdVec`, with a comment that it will soon be used. - Add back `*_region` functions, with a comment they may soon be used. - Remove `-Z borrowck_stats` completely. It didn't do anything. - Remove `make_nop` completely. - Add back `current_loc`, which is used by an out-of-tree tool. - Fix style nits - Remove `AtomicCell` with `cfg(parallel_compiler)` for consistency.
This commit is contained in:
parent
441dc3640a
commit
de0fda9558
10 changed files with 154 additions and 18 deletions
|
@ -13,7 +13,6 @@ pub struct MirPatch<'tcx> {
|
|||
new_locals: Vec<LocalDecl<'tcx>>,
|
||||
resume_block: BasicBlock,
|
||||
next_local: usize,
|
||||
make_nop: Vec<Location>,
|
||||
}
|
||||
|
||||
impl<'tcx> MirPatch<'tcx> {
|
||||
|
@ -25,7 +24,6 @@ impl<'tcx> MirPatch<'tcx> {
|
|||
new_locals: vec![],
|
||||
next_local: body.local_decls.len(),
|
||||
resume_block: START_BLOCK,
|
||||
make_nop: vec![],
|
||||
};
|
||||
|
||||
// make sure the MIR we create has a resume block. It is
|
||||
|
@ -118,10 +116,6 @@ impl<'tcx> MirPatch<'tcx> {
|
|||
}
|
||||
|
||||
pub fn apply(self, body: &mut Body<'tcx>) {
|
||||
debug!("MirPatch: make nops at: {:?}", self.make_nop);
|
||||
for loc in self.make_nop {
|
||||
body.make_statement_nop(loc);
|
||||
}
|
||||
debug!(
|
||||
"MirPatch: {:?} new temps, starting from index {}: {:?}",
|
||||
self.new_locals.len(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue