1
Fork 0

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, regioncx,
closure_region_requirements, closure_region_requirements,
borrow_set, borrow_set,
pass_where.clone(), pass_where,
out, 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 /// An indication of where we are in the control flow graph. Used for printing
/// extra information in `dump_mir` /// extra information in `dump_mir`
#[derive(Clone)] #[derive(Clone, Copy)]
pub enum PassWhere { pub enum PassWhere {
/// We have not started dumping the control flow graph, but we are about to. /// We have not started dumping the control flow graph, but we are about to.
BeforeCFG, BeforeCFG,