Skip to content

Commit 6508b4e

Browse files
committed
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.
1 parent 391ccd0 commit 6508b4e

File tree

1 file changed

+1
-0
lines changed
  • crates/bevy_ecs/macros/src

1 file changed

+1
-0
lines changed

crates/bevy_ecs/macros/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream {
380380
type Fetch = #fetch_struct_name <(#(<#field_types as SystemParam>::Fetch,)*), #punctuated_generic_idents>;
381381
}
382382

383+
#[doc(hidden)]
383384
#fetch_struct_visibility struct #fetch_struct_name<TSystemParamState, #punctuated_generic_idents> {
384385
state: TSystemParamState,
385386
marker: std::marker::PhantomData<(#punctuated_generic_idents)>

0 commit comments

Comments
 (0)