diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-12-13 15:35:28 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-12-18 07:33:26 +0000 |
| commit | ee93ce9c611b673520eedceddb3bd0d13a4fc73a (patch) | |
| tree | 4ded119ab6ed641bca96152e2d0d18f8eb112ed9 /compiler/rustc_middle | |
| parent | e7fb93bf9b4261cd786977f7a41a9ff63ff22a0a (diff) | |
| download | rust-ee93ce9c611b673520eedceddb3bd0d13a4fc73a.tar.gz rust-ee93ce9c611b673520eedceddb3bd0d13a4fc73a.zip | |
extract main NLL MIR dump function
this will allow calling from polonius MIR
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/mir/pretty.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/mir/pretty.rs b/compiler/rustc_middle/src/mir/pretty.rs index 2bfcd0a6227..bf5045835a0 100644 --- a/compiler/rustc_middle/src/mir/pretty.rs +++ b/compiler/rustc_middle/src/mir/pretty.rs @@ -23,6 +23,7 @@ pub(crate) const ALIGN: usize = 40; /// An indication of where we are in the control flow graph. Used for printing /// extra information in `dump_mir` +#[derive(Clone)] pub enum PassWhere { /// We have not started dumping the control flow graph, but we are about to. BeforeCFG, |
