From 91fb0804bead41f723a72136c39723434a290b62 Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Sun, 31 May 2020 11:43:54 -0700 Subject: [PATCH] Hide docs for more generated items. --- core/codegen/src/attribute/catch.rs | 2 ++ core/codegen/src/attribute/route.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/codegen/src/attribute/catch.rs b/core/codegen/src/attribute/catch.rs index dd8daaaa..465cf2ec 100644 --- a/core/codegen/src/attribute/catch.rs +++ b/core/codegen/src/attribute/catch.rs @@ -83,6 +83,7 @@ pub fn _catch(args: TokenStream, input: TokenStream) -> Result { #user_catcher_fn /// Rocket code generated wrapping catch function. + #[doc(hidden)] #vis fn #generated_fn_name<'_b>(#req: &'_b #Request) -> #response::Result<'_b> { let __response = #catcher_response; #Response::build() @@ -92,6 +93,7 @@ pub fn _catch(args: TokenStream, input: TokenStream) -> Result { } /// Rocket code generated static catcher info. + #[doc(hidden)] #[allow(non_upper_case_globals)] #vis static #generated_struct_name: ::rocket::StaticCatchInfo = ::rocket::StaticCatchInfo { diff --git a/core/codegen/src/attribute/route.rs b/core/codegen/src/attribute/route.rs index e91a40df..6de82a40 100644 --- a/core/codegen/src/attribute/route.rs +++ b/core/codegen/src/attribute/route.rs @@ -420,6 +420,7 @@ fn codegen_route(route: Route) -> Result { #user_handler_fn /// Rocket code generated wrapping route function. + #[doc(hidden)] #vis fn #generated_fn_name<'_b>( #req: &'_b #Request, #data: #Data @@ -435,6 +436,7 @@ fn codegen_route(route: Route) -> Result { #generated_internal_uri_macro /// Rocket code generated static route info. + #[doc(hidden)] #[allow(non_upper_case_globals)] #vis static #generated_struct_name: #StaticRouteInfo = #StaticRouteInfo {