diff options
| author | Ryan Snyder <ryan@vector35.com> | 2024-05-01 08:31:37 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2024-05-01 08:31:37 -0400 |
| commit | 62eaff47182657ca692d02e73f0aa5828dd74f4c (patch) | |
| tree | b9f8fc9b1f573e25cfbffcb15b6193a011336aa1 /rust/src/basicblock.rs | |
| parent | bec653143bd78f1662ed1a556c4b00471f395fcc (diff) | |
| parent | f3c1a3cb3cbdd25d5f556d1ab770f8cbc29fd567 (diff) | |
Merge branch 'fix-array-2' of github.com:rbran/binaryninja-api into dev
Diffstat (limited to 'rust/src/basicblock.rs')
| -rw-r--r-- | rust/src/basicblock.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rust/src/basicblock.rs b/rust/src/basicblock.rs index 73ad9362..f28e596f 100644 --- a/rust/src/basicblock.rs +++ b/rust/src/basicblock.rs @@ -76,10 +76,10 @@ unsafe impl<'a, C: 'a + BlockContext> CoreOwnedArrayProvider for Edge<'a, C> { } } -unsafe impl<'a, C: 'a + BlockContext> CoreArrayWrapper<'a> for Edge<'a, C> { - type Wrapped = Edge<'a, C>; +unsafe impl<'a, C: BlockContext> CoreArrayWrapper for Edge<'a, C> { + type Wrapped<'b> = Edge<'b, C> where 'a: 'b; - unsafe fn wrap_raw(raw: &'a Self::Raw, context: &'a Self::Context) -> Edge<'a, C> { + unsafe fn wrap_raw<'b>(raw: &'b Self::Raw, context: &'b Self::Context) -> Self::Wrapped<'b> { let edge_target = Guard::new( BasicBlock::from_raw(raw.target, context.orig_block.context.clone()), raw, @@ -309,10 +309,10 @@ unsafe impl<C: BlockContext> CoreOwnedArrayProvider for BasicBlock<C> { } } -unsafe impl<'a, C: 'a + BlockContext> CoreArrayWrapper<'a> for BasicBlock<C> { - type Wrapped = Guard<'a, BasicBlock<C>>; +unsafe impl<C: BlockContext> CoreArrayWrapper for BasicBlock<C> { + type Wrapped<'a> = Guard<'a, BasicBlock<C>> where C: 'a; - unsafe fn wrap_raw(raw: &'a Self::Raw, context: &'a Self::Context) -> Self::Wrapped { + unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, context: &'a Self::Context) -> Self::Wrapped<'a> { Guard::new(BasicBlock::from_raw(*raw, context.clone()), context) } } |
