Mark the generated entry as doc(hidden) (#761)

Should hopefully fix the currently failing build

- [x] no changelog update needed
This commit is contained in:
Gwilym Inzani 2024-09-18 18:32:25 +01:00 committed by GitHub
commit 18572658cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,6 +103,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
quote!( quote!(
#[cfg(not(test))] #[cfg(not(test))]
#[export_name = "main"] #[export_name = "main"]
#[doc(hidden)]
#(#attrs)* #(#attrs)*
pub extern "C" fn #fn_name() -> ! { pub extern "C" fn #fn_name() -> ! {
let #mutable #argument_name = unsafe { #argument_type ::new_in_entry() }; let #mutable #argument_name = unsafe { #argument_type ::new_in_entry() };
@ -112,6 +113,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
#[cfg(test)] #[cfg(test)]
#[export_name = "main"] #[export_name = "main"]
#[doc(hidden)]
#(#attrs)* #(#attrs)*
pub extern "C" fn #fn_name() -> ! { pub extern "C" fn #fn_name() -> ! {
let mut #argument_name = unsafe { #argument_type ::new_in_entry() }; let mut #argument_name = unsafe { #argument_type ::new_in_entry() };