Mark the generated entry as doc(hidden)

This commit is contained in:
Gwilym Inzani 2024-09-18 18:24:23 +01:00 committed by GitHub
parent 7a2ef4338c
commit ab46121934
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() };