Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit 54b5173

Browse files
#[allow(missing_docs)] on #[pre_init] hooks
1 parent b265e3e commit 54b5173

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

macros/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ pub fn pre_init(args: TokenStream, input: TokenStream) -> TokenStream {
767767

768768
quote!(
769769
#[export_name = "__pre_init"]
770+
#[allow(missing_docs)] // we make a private fn public, which can trigger this lint
770771
#(#attrs)*
771772
pub unsafe fn #ident() #block
772773
)

0 commit comments

Comments
 (0)