We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void
Given a Vala interface method:
public virtual async void hoge_async() {}
gir generates the following trampoline:
unsafe extern "C" fn hoge_async_trampoline<P: FnOnce(()) + 'static>(_source_object: *mut glib::gobject_ffi::GObject, res: *mut gio::ffi::GAsyncResult, user_data: glib::ffi::gpointer) { let _ = ffi::foo_bar_hoge_finish(_source_object as *mut _, res); let callback: Box_<glib::thread_guard::ThreadGuard<P>> = Box_::from_raw(user_data as *mut _); let callback: P = callback.into_inner(); callback(result); // error[E0425]: cannot find value `result` in this scope }
The text was updated successfully, but these errors were encountered:
This is where the problematic line is generated:
gir/src/codegen/function_body_chunk.rs
Lines 895 to 898 in 3a2fdae
Sorry, something went wrong.
No branches or pull requests
Given a Vala interface method:
gir generates the following trampoline:
The text was updated successfully, but these errors were encountered: