about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-02-14 16:29:23 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-02-21 07:12:13 +1100
commit0519a58f7a461e0d2f7342de421ce1176f7bfd8d (patch)
tree14a224ce32f1d7286d16860f5ee1e8ce4f5fed6b /compiler/rustc_middle/src
parente03c809402d1f60b158a86810a51ab4e6e40f114 (diff)
Make `PassWhere` impl `Copy`.
It's a very small and simple type.
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/mir/pretty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/pretty.rs b/compiler/rustc_middle/src/mir/pretty.rs
index 1e3b8d029e1..5d58ce9b409 100644
--- a/compiler/rustc_middle/src/mir/pretty.rs
+++ b/compiler/rustc_middle/src/mir/pretty.rs
@@ -22,7 +22,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)]
+#[derive(Clone, Copy)]
 pub enum PassWhere {
     /// We have not started dumping the control flow graph, but we are about to.
     BeforeCFG,