Make PassWhere impl Copy.

It's a very small and simple type.
This commit is contained in:
Nicholas Nethercote 2025-02-14 16:29:23 +11:00
parent e03c809402
commit 0519a58f7a
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ fn emit_polonius_mir<'tcx>(
regioncx,
closure_region_requirements,
borrow_set,
pass_where.clone(),
pass_where,
out,
)?;

View File

@ -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,