1
Fork 0

Create format_args as late as possible

This commit is contained in:
Oli Scherer 2022-12-01 08:49:51 +00:00
parent 66797fa54f
commit 4f593ce5d8
7 changed files with 29 additions and 51 deletions

View file

@ -294,14 +294,7 @@ where
None if tcx.sess.opts.unstable_opts.dump_mir_dataflow
&& dump_enabled(tcx, A::NAME, def_id) =>
{
create_dump_file(
tcx,
".dot",
None,
A::NAME,
&pass_name.unwrap_or("-----"),
body.source,
)?
create_dump_file(tcx, ".dot", false, A::NAME, &pass_name.unwrap_or("-----"), body)?
}
_ => return Ok(()),