From ee93ce9c611b673520eedceddb3bd0d13a4fc73a Mon Sep 17 00:00:00 2001 From: Rémy Rakic Date: Fri, 13 Dec 2024 15:35:28 +0000 Subject: extract main NLL MIR dump function this will allow calling from polonius MIR --- compiler/rustc_middle/src/mir/pretty.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_middle/src') 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, -- cgit 1.4.1-3-g733a5