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
c40276e8d2
commit
b29b2db35e
|
@ -74,7 +74,8 @@ pub fn _catch(args: TokenStream, input: TokenStream) -> Result<TokenStream> {
|
||||||
let catcher_response = quote_spanned!(return_type_span => {
|
let catcher_response = quote_spanned!(return_type_span => {
|
||||||
// Emit this to force a type signature check.
|
// Emit this to force a type signature check.
|
||||||
let #catcher: #fn_sig = #user_catcher_fn_name;
|
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.
|
// Generate the catcher, keeping the user's input around.
|
||||||
|
|
Loading…
Reference in New Issue