Hide docs for more generated items.

This commit is contained in:
Jeb Rosen 2020-05-31 11:43:54 -07:00 committed by Sergio Benitez
parent b38753eaf8
commit 91fb0804be
2 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,7 @@ pub fn _catch(args: TokenStream, input: TokenStream) -> Result<TokenStream> {
#user_catcher_fn #user_catcher_fn
/// Rocket code generated wrapping catch function. /// Rocket code generated wrapping catch function.
#[doc(hidden)]
#vis fn #generated_fn_name<'_b>(#req: &'_b #Request) -> #response::Result<'_b> { #vis fn #generated_fn_name<'_b>(#req: &'_b #Request) -> #response::Result<'_b> {
let __response = #catcher_response; let __response = #catcher_response;
#Response::build() #Response::build()
@ -92,6 +93,7 @@ pub fn _catch(args: TokenStream, input: TokenStream) -> Result<TokenStream> {
} }
/// Rocket code generated static catcher info. /// Rocket code generated static catcher info.
#[doc(hidden)]
#[allow(non_upper_case_globals)] #[allow(non_upper_case_globals)]
#vis static #generated_struct_name: ::rocket::StaticCatchInfo = #vis static #generated_struct_name: ::rocket::StaticCatchInfo =
::rocket::StaticCatchInfo { ::rocket::StaticCatchInfo {

View File

@ -420,6 +420,7 @@ fn codegen_route(route: Route) -> Result<TokenStream> {
#user_handler_fn #user_handler_fn
/// Rocket code generated wrapping route function. /// Rocket code generated wrapping route function.
#[doc(hidden)]
#vis fn #generated_fn_name<'_b>( #vis fn #generated_fn_name<'_b>(
#req: &'_b #Request, #req: &'_b #Request,
#data: #Data #data: #Data
@ -435,6 +436,7 @@ fn codegen_route(route: Route) -> Result<TokenStream> {
#generated_internal_uri_macro #generated_internal_uri_macro
/// Rocket code generated static route info. /// Rocket code generated static route info.
#[doc(hidden)]
#[allow(non_upper_case_globals)] #[allow(non_upper_case_globals)]
#vis static #generated_struct_name: #StaticRouteInfo = #vis static #generated_struct_name: #StaticRouteInfo =
#StaticRouteInfo { #StaticRouteInfo {