Skip to content

Commit 6752d1a

Browse files
committed
Make CallSite non-Copy.
It doesn't need to be, and it's 72 bytes on 64-bit platforms, which is fairly large.
1 parent d61567b commit 6752d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/inline.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const TOP_DOWN_DEPTH_LIMIT: usize = 5;
3636
// by custom rustc drivers, running all the steps by themselves. See #114628.
3737
pub struct Inline;
3838

39-
#[derive(Copy, Clone, Debug)]
39+
#[derive(Clone, Debug)]
4040
struct CallSite<'tcx> {
4141
callee: Instance<'tcx>,
4242
fn_sig: ty::PolyFnSig<'tcx>,

0 commit comments

Comments
 (0)