From 6508b4ed2593736c70bc66f89597f258b4f7dfce Mon Sep 17 00:00:00 2001 From: Zicklag Date: Thu, 22 Apr 2021 23:09:59 +0000 Subject: [PATCH] Hide Derived SystemParam State Struct From Docs (#1984) This makes sure the automatically generated MyStructState type is not shown in the rustdoc when deriving SystemParam on MyStruct. --- crates/bevy_ecs/macros/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_ecs/macros/src/lib.rs b/crates/bevy_ecs/macros/src/lib.rs index 8fae4ee957..b8ed1d882b 100644 --- a/crates/bevy_ecs/macros/src/lib.rs +++ b/crates/bevy_ecs/macros/src/lib.rs @@ -380,6 +380,7 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream { type Fetch = #fetch_struct_name <(#(<#field_types as SystemParam>::Fetch,)*), #punctuated_generic_idents>; } + #[doc(hidden)] #fetch_struct_visibility struct #fetch_struct_name { state: TSystemParamState, marker: std::marker::PhantomData<(#punctuated_generic_idents)>