File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -8730,6 +8730,10 @@ impl<'a> Parser<'a> {
8730
8730
/// The arguments of the function are replaced in HIR lowering with the arguments created by
8731
8731
/// this function and the statements created here are inserted at the top of the closure body.
8732
8732
fn construct_async_arguments ( & mut self , asyncness : & mut Spanned < IsAsync > , decl : & mut FnDecl ) {
8733
+ // FIXME(davidtwco): This function should really live in the HIR lowering but because
8734
+ // the types constructed here need to be used in parts of resolve so that the correct
8735
+ // locals are considered upvars, it is currently easier for it to live here in the parser,
8736
+ // where it can be constructed once.
8733
8737
if let IsAsync :: Async { ref mut arguments, .. } = asyncness. node {
8734
8738
for ( index, input) in decl. inputs . iter_mut ( ) . enumerate ( ) {
8735
8739
let id = ast:: DUMMY_NODE_ID ;
You can’t perform that action at this time.
0 commit comments