File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
futures-await-async-macro/src Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -338,14 +338,20 @@ pub fn async_block(input: TokenStream) -> TokenStream {
338
338
// that we get the `call_site` span instead of the default span.
339
339
let span = Span :: call_site ( ) ;
340
340
syn:: token:: Paren ( span) . surround ( & mut tokens, |tokens| {
341
- syn:: token:: Move ( span) . to_tokens ( tokens) ;
342
- syn:: token:: OrOr ( [ span, span] ) . to_tokens ( tokens) ;
341
+ syn:: token:: Unsafe ( span) . to_tokens ( tokens) ;
343
342
syn:: token:: Brace ( span) . surround ( tokens, |tokens| {
344
- ( quote_cs ! {
345
- if false { yield :: futures:: Async :: NotReady }
346
- } ) . to_tokens ( tokens) ;
347
- expr. to_tokens ( tokens) ;
343
+ syn:: token:: Static ( span) . to_tokens ( tokens) ;
344
+ syn:: token:: Move ( span) . to_tokens ( tokens) ;
345
+ syn:: token:: OrOr ( [ span, span] ) . to_tokens ( tokens) ;
346
+ syn:: token:: Brace ( span) . surround ( tokens, |tokens| {
347
+ ( quote_cs ! {
348
+ if false { yield :: futures:: Async :: NotReady }
349
+ } ) . to_tokens ( tokens) ;
350
+ expr. to_tokens ( tokens) ;
351
+ } ) ;
348
352
} ) ;
353
+
354
+
349
355
} ) ;
350
356
351
357
tokens. into ( )
You can’t perform that action at this time.
0 commit comments