On 3/3/25 15:28, Zhao Liu wrote:
-    pub fn init_full<'timer, 'opaque: 'timer, T, F>(
-        &'timer mut self,
+    pub fn new_full<'opaque, T, F>(
          timer_list_group: Option<&TimerListGroup>,
          clk_type: ClockType,
          scale: u32,
          attributes: u32,
          _cb: F,
          opaque: &'opaque T,
-    ) where
+    ) -> Pin<Box<Self>>
          F: for<'a> FnCall<(&'a T,)>,
      {

Ah, the lifetime here isn't effectively bound... However, I also
referred to your latest code [1] :), and it seems that this issue
has already been fixed. (Nit: The code still has a complaint from
`cargo fmt`)

I am not sure if the change I have in that commit actually does anything, unfortunately... :( which is why I wanted to use init_full instead of new_full.

It's easiest to marked new_full() unsafe for now.

Paolo

[1]: 
https://gitlab.com/bonzini/qemu/-/commit/ccb9f6dc738f503a696d8d50f1b5e4576ee80bc6


Reply via email to