diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-30 16:10:03 +1000 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-09 15:15:43 +1000 | 
| commit | 7adde3f07494df316698c330f39a00e8105d53b1 (patch) | |
| tree | 1bdf739e3890bbc05f6d78b50e392b1fafaa25ac /compiler/rustc_mir_transform/src/inline.rs | |
| parent | 9cf90b9fc987a58c873643fbd0e26296b9675943 (diff) | |
| download | rust-7adde3f07494df316698c330f39a00e8105d53b1.tar.gz rust-7adde3f07494df316698c330f39a00e8105d53b1.zip | |
Make `CallSite` non-`Copy`.
It doesn't need to be, and it's 72 bytes on 64-bit platforms, which is fairly large.
Diffstat (limited to 'compiler/rustc_mir_transform/src/inline.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/inline.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_mir_transform/src/inline.rs b/compiler/rustc_mir_transform/src/inline.rs index 702efabe871..03ef808efec 100644 --- a/compiler/rustc_mir_transform/src/inline.rs +++ b/compiler/rustc_mir_transform/src/inline.rs @@ -36,7 +36,7 @@ const TOP_DOWN_DEPTH_LIMIT: usize = 5; // by custom rustc drivers, running all the steps by themselves. See #114628. pub struct Inline; -#[derive(Copy, Clone, Debug)] +#[derive(Clone, Debug)] struct CallSite<'tcx> { callee: Instance<'tcx>, fn_sig: ty::PolyFnSig<'tcx>, | 
