rust/compiler/rustc_mir/src
Guillaume Gomez e2271cd422
Rollup merge of #88129 - willcrichton:expose-graphviz-modules, r=ecstatic-morse
Fix dataflow graphviz bug, make dataflow graphviz modules public

I'm working on a rustc plugin that uses the dataflow framework for MIR analysis. I've found the graphviz utilities extremely helpful for debugging. However, I had to fork the compiler to expose them since they're currently private. I would appreciate if they could be made public so I can build against a nightly instead of a custom fork. Specifically, this PR:

* Makes public the `rustc_mir::dataflow::framework::graphviz` module.
* Makes public the `rustc_mir::util::pretty::write_mir_fn` function.

Here's a concrete example of how I'm using the graphviz module: 97b843b8b0/src/slicing/mod.rs (L186-L203)

Additionally, this PR fixes a small bug in the diff code that incorrectly shows the updated object as the old object.

r? `@ecstatic-morse`
2021-08-18 19:55:04 +02:00
..
borrow_check Auto merge of #87781 - est31:remove_box, r=oli-obk 2021-08-18 10:43:27 +00:00
const_eval Improve comments about const panic handling 2021-07-28 16:18:38 +02:00
dataflow Fix bug in fmt_diff_with 2021-08-17 20:55:15 -07:00
interpret Implement black_box using intrinsic 2021-08-12 16:16:57 +01:00
monomorphize clippy:: append_instead_of_extend 2021-07-25 12:26:02 +02:00
transform Remove box syntax from rustc_mir 2021-08-18 09:31:51 +02:00
util Rollup merge of #88129 - willcrichton:expose-graphviz-modules, r=ecstatic-morse 2021-08-18 19:55:04 +02:00
lib.rs Remove box syntax from rustc_mir 2021-08-18 09:31:51 +02:00
shim.rs Remove box syntax from rustc_mir 2021-08-18 09:31:51 +02:00