Skip to content

Commit a412564

Browse files
committed
Auto merge of rust-lang#109954 - clubby789:graphviz-path-trimming, r=compiler-errors
Disable path trimming during graphviz output Fixes rust-lang#109943 We can end up pretty-printing a path for the graphviz file without emitting a diagnostic, so disable path trimming at this point.
2 parents 8d321f7 + 422c330 commit a412564

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_mir_dataflow/src/framework

1 file changed

+2
-1
lines changed

compiler/rustc_mir_dataflow/src/framework/engine.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use rustc_hir::def_id::DefId;
1515
use rustc_index::vec::{Idx, IndexVec};
1616
use rustc_middle::mir::{self, traversal, BasicBlock};
1717
use rustc_middle::mir::{create_dump_file, dump_enabled};
18+
use rustc_middle::ty::print::with_no_trimmed_paths;
1819
use rustc_middle::ty::TyCtxt;
1920
use rustc_span::symbol::{sym, Symbol};
2021

@@ -285,7 +286,7 @@ where
285286
if tcx.sess.opts.unstable_opts.graphviz_dark_mode {
286287
render_opts.push(dot::RenderOption::DarkTheme);
287288
}
288-
dot::render_opts(&graphviz, &mut buf, &render_opts)?;
289+
with_no_trimmed_paths!(dot::render_opts(&graphviz, &mut buf, &render_opts)?);
289290

290291
file.write_all(&buf)?;
291292

0 commit comments

Comments
 (0)