Skip to content

Commit

Permalink
Add missing #[doc(hidden)] attributes for embassy proc macros (#1302)
Browse files Browse the repository at this point in the history
Fixes #1233
  • Loading branch information
AnthonyGrondin authored Mar 21, 2024
1 parent d5e4995 commit 1b2dab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esp-hal-procmacros/src/embassy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ pub(crate) mod main {
let out = &f.sig.output;

let result = quote! {
#[doc(hidden)]
#[::embassy_executor::task()]
async fn __embassy_main(#fargs) #out {
#f_body
}

#[doc(hidden)]
unsafe fn __make_static<T>(t: &mut T) -> &'static mut T {
::core::mem::transmute(t)
}
Expand Down

0 comments on commit 1b2dab1

Please sign in to comment.