rust/compiler/rustc_mir/src/util
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
..
aggregate.rs Remove box syntax from rustc_mir 2021-08-18 09:31:51 +02:00
alignment.rs unaligned_references: align(N) fields in packed(N) structs are fine 2021-03-28 12:54:19 +02:00
borrowck_errors.rs Added better error message for shared borrow treated as unique for purposes of lifetimes 2020-12-01 10:24:23 +05:30
collect_writes.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
elaborate_drops.rs Remove box syntax from rustc_mir 2021-08-18 09:31:51 +02:00
find_self_call.rs fix few typos 2021-04-19 15:57:08 +03:00
generic_graph.rs Remove CrateNum::ReservedForIncrCompCache 2021-05-30 14:33:16 +02:00
generic_graphviz.rs Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
graphviz.rs Fix mir-cfg dumps 2021-02-22 17:36:30 +03:00
mod.rs Expose graphviz modules 2021-08-17 16:12:11 -07:00
patch.rs Remove box syntax from rustc_mir 2021-08-18 09:31:51 +02:00
pretty.rs clippy::useless_format 2021-07-25 12:26:03 +02:00
spanview.rs Spanview needs the relevant body_span used for coverage 2021-05-12 20:10:05 -07:00
storage.rs Miscellaneous inlining improvements 2021-02-26 00:00:00 +00:00