diff options
Diffstat (limited to 'rtic-macros/src')
| -rw-r--r-- | rtic-macros/src/codegen/module.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtic-macros/src/codegen/module.rs b/rtic-macros/src/codegen/module.rs index c10c123..1d2f90a 100644 --- a/rtic-macros/src/codegen/module.rs +++ b/rtic-macros/src/codegen/module.rs @@ -192,7 +192,7 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 { #[allow(non_snake_case)] #[doc(hidden)] pub fn #internal_waker_ident() -> ::core::task::Waker { - // SAFETY: If `try_allocate` succeeds one must call `spawn`, which we do. + // SAFETY: #exec_name is a valid pointer to an executor. unsafe { let exec = rtic::export::executor::AsyncTaskExecutor::#from_ptr_n_args(#name, &#exec_name); exec.waker(|| { |
