Make CallSite non-Copy.

It doesn't need to be, and it's 72 bytes on 64-bit platforms, which is
fairly large.
This commit is contained in:
Nicholas Nethercote 2024-08-30 16:10:03 +10:00
parent 9cf90b9fc9
commit 7adde3f074

View File

@ -36,7 +36,7 @@ const TOP_DOWN_DEPTH_LIMIT: usize = 5;
// by custom rustc drivers, running all the steps by themselves. See #114628. // by custom rustc drivers, running all the steps by themselves. See #114628.
pub struct Inline; pub struct Inline;
#[derive(Copy, Clone, Debug)] #[derive(Clone, Debug)]
struct CallSite<'tcx> { struct CallSite<'tcx> {
callee: Instance<'tcx>, callee: Instance<'tcx>,
fn_sig: ty::PolyFnSig<'tcx>, fn_sig: ty::PolyFnSig<'tcx>,