Skip to content

Commit 5bc82f6

Browse files
committed
Cleaning changes
1 parent 8ce816d commit 5bc82f6

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

crates/flowistry/src/pdg/construct.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use rustc_middle::{
2121
ty::{GenericArg, GenericArgsRef, List, ParamEnv, TyCtxt, TyKind},
2222
};
2323
use rustc_mir_dataflow::{self as df};
24-
use rustc_span::sym::poll;
2524
use rustc_utils::{
2625
mir::{borrowck_facts, control_dependencies::ControlDependencies},
2726
BodyExt, PlaceExt,
@@ -270,14 +269,7 @@ impl<'tcx> GraphConstructor<'tcx> {
270269
};
271270
let body =
272271
utils::try_monomorphize(tcx, params.root, param_env, &body_with_facts.body);
273-
274-
if log::log_enabled!(log::Level::Debug) {
275-
use std::io::Write;
276-
let path = tcx.def_path_str(def_id) + ".mir";
277-
let mut f = std::fs::File::create(path.as_str()).unwrap();
278-
write!(f, "{}", body.to_string(tcx).unwrap()).unwrap();
279-
debug!("Dumped debug MIR {path}");
280-
}
272+
debug!("{}", body.to_string(tcx).unwrap());
281273

282274
let place_info = PlaceInfo::build(tcx, def_id.to_def_id(), body_with_facts);
283275
let control_dependencies = body.control_dependencies();

0 commit comments

Comments
 (0)