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:
parent
c2f74c3f92
commit
55c9f96265
3 changed files with 1 additions and 4 deletions
|
@ -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>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue