1
Fork 0

Remove unnecessary Clone/Copy derives from analyses.

No analysis needs `Copy`, and `MaybeBorrowedLocals` is the only analysis
that needs `Clone`. In `locals_live_across_suspend_points` it gets
cloned so it can be used within a `MaybeRequiresStorage`.
This commit is contained in:
Nicholas Nethercote 2024-09-13 09:49:28 +10:00
parent c2f74c3f92
commit 55c9f96265
3 changed files with 1 additions and 4 deletions

View file

@ -217,7 +217,6 @@ impl DefUse {
/// This is basically written for dead store elimination and nothing else.
///
/// All of the caveats of `MaybeLiveLocals` apply.
#[derive(Clone, Copy)]
pub struct MaybeTransitiveLiveLocals<'a> {
always_live: &'a BitSet<Local>,
}