Skip to content

Commit 335d8f7

Browse files
committed
Adjust '#[catch]' codegen output to fix a UI test regression in latest nightly.
1 parent 777d01f commit 335d8f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/codegen/src/attribute/catch.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ pub fn _catch(args: TokenStream, input: TokenStream) -> Result<TokenStream> {
7474
let catcher_response = quote_spanned!(return_type_span => {
7575
// Emit this to force a type signature check.
7676
let #catcher: #fn_sig = #user_catcher_fn_name;
77-
::rocket::response::Responder::respond_to(#catcher(#inputs), #req)?
77+
let ___responder = #catcher(#inputs);
78+
::rocket::response::Responder::respond_to(___responder, #req)?
7879
});
7980

8081
// Generate the catcher, keeping the user's input around.

0 commit comments

Comments
 (0)