diff options
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 012846d..9371275 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -297,6 +297,8 @@ pub unsafe trait Plugin<'ph> { pub struct LtPhPtr<'ph> { ph: *mut RawPh, // 'ph has to be invariant because RawPh is self-referential. + // "ideally" we'd want `&'ph mut RawPh<'ph>`, tho the `*mut` above would've + // had the same effect if `RawPh` were `RawPh<'ph>`. _lt: PhantomData<fn(&'ph ()) -> &'ph ()>, } |