We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1899f82 commit c5b70d0Copy full SHA for c5b70d0
src/trees.rs
@@ -21,6 +21,11 @@ use std::ptr::NonNull;
21
/// Wrapper around `tsk_tree_t`.
22
pub struct Tree<'treeseq> {
23
pub(crate) inner: mbox::MBox<ll_bindings::tsk_tree_t>,
24
+ // NOTE: this reference exists becaust tsk_tree_t
25
+ // contains a NON-OWNING pointer to tsk_treeseq_t.
26
+ // Thus, we could theoretically cause UB without
27
+ // tying the rust-side object liftimes together.
28
+ #[allow(dead_code)]
29
treeseq: &'treeseq TreeSequence,
30
api: TreeInterface,
31
current_tree: i32,
0 commit comments