summaryrefslogtreecommitdiff
path: root/compiler/rustc_mir_dataflow
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2023-04-05 03:06:37 +0100
committerclubby789 <jamie@hill-daniel.co.uk>2023-04-05 03:06:37 +0100
commit422c33030f8d1137f78e4d9fef2777b12184e13f (patch)
tree6fb6ac7f6c50cd6489fbc9f627cdb75d03dc0295 /compiler/rustc_mir_dataflow
parent603270011e53c025e873841f158a44599fb7afab (diff)
downloadrust-422c33030f8d1137f78e4d9fef2777b12184e13f.tar.gz
Disable path trimming during graphviz output
Diffstat (limited to 'compiler/rustc_mir_dataflow')
-rw-r--r--compiler/rustc_mir_dataflow/src/framework/engine.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/framework/engine.rs b/compiler/rustc_mir_dataflow/src/framework/engine.rs
index 91c3bf0ad21..2abdee064a6 100644
--- a/compiler/rustc_mir_dataflow/src/framework/engine.rs
+++ b/compiler/rustc_mir_dataflow/src/framework/engine.rs
@@ -15,6 +15,7 @@ use rustc_hir::def_id::DefId;
use rustc_index::vec::{Idx, IndexVec};
use rustc_middle::mir::{self, traversal, BasicBlock};
use rustc_middle::mir::{create_dump_file, dump_enabled};
+use rustc_middle::ty::print::with_no_trimmed_paths;
use rustc_middle::ty::TyCtxt;
use rustc_span::symbol::{sym, Symbol};
@@ -285,7 +286,7 @@ where
if tcx.sess.opts.unstable_opts.graphviz_dark_mode {
render_opts.push(dot::RenderOption::DarkTheme);
}
- dot::render_opts(&graphviz, &mut buf, &render_opts)?;
+ with_no_trimmed_paths!(dot::render_opts(&graphviz, &mut buf, &render_opts)?);
file.write_all(&buf)?;