mirror of https://github.com/rwf2/Rocket.git
Adjust '#[catch]' codegen output to fix a UI test regression in latest nightly.
This commit is contained in:
parent
777d01fa87
commit
335d8f7dbb
|
@ -74,7 +74,8 @@ pub fn _catch(args: TokenStream, input: TokenStream) -> Result<TokenStream> {
|
|||
let catcher_response = quote_spanned!(return_type_span => {
|
||||
// Emit this to force a type signature check.
|
||||
let #catcher: #fn_sig = #user_catcher_fn_name;
|
||||
::rocket::response::Responder::respond_to(#catcher(#inputs), #req)?
|
||||
let ___responder = #catcher(#inputs);
|
||||
::rocket::response::Responder::respond_to(___responder, #req)?
|
||||
});
|
||||
|
||||
// Generate the catcher, keeping the user's input around.
|
||||
|
|
Loading…
Reference in New Issue