Skip to content

Commit 0519a58

Browse files
committed
Make PassWhere impl Copy.
It's a very small and simple type.
1 parent e03c809 commit 0519a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_borrowck/src/polonius/dump.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ fn emit_polonius_mir<'tcx>(
226226
regioncx,
227227
closure_region_requirements,
228228
borrow_set,
229-
pass_where.clone(),
229+
pass_where,
230230
out,
231231
)?;
232232

compiler/rustc_middle/src/mir/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub(crate) const ALIGN: usize = 40;
2222

2323
/// An indication of where we are in the control flow graph. Used for printing
2424
/// extra information in `dump_mir`
25-
#[derive(Clone)]
25+
#[derive(Clone, Copy)]
2626
pub enum PassWhere {
2727
/// We have not started dumping the control flow graph, but we are about to.
2828
BeforeCFG,

0 commit comments

Comments
 (0)