1
Fork 0

Avoid debug logging entire MIR body

If there is a need to examine the MIR body there is -Zmir-dump.
This commit is contained in:
Tomasz Miąsko 2024-02-15 00:00:00 +00:00
parent fa9f77ff35
commit 5d65b1954e
2 changed files with 2 additions and 4 deletions

View file

@ -653,7 +653,6 @@ fn inner_optimized_mir(tcx: TyCtxt<'_>, did: LocalDefId) -> Body<'_> {
debug!("about to call mir_drops_elaborated...");
let body = tcx.mir_drops_elaborated_and_const_checked(did).steal();
let mut body = remap_mir_for_const_eval_select(tcx, body, hir::Constness::NotConst);
debug!("body: {:#?}", body);
if body.tainted_by_errors.is_some() {
return body;