File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
src/librustc_ast_lowering Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -487,23 +487,22 @@ impl<'hir> LoweringContext<'_, 'hir> {
487487
488488 let task_context_id = self . resolver . next_node_id ( ) ;
489489 let task_context_hid = self . lower_node_id ( task_context_id) ;
490+
491+ let arg_ty = Ty { id : self . resolver . next_node_id ( ) , kind : TyKind :: Infer , span : DUMMY_SP } ;
492+ let arg_pat = Pat {
493+ id : task_context_id,
494+ kind : PatKind :: Ident (
495+ BindingMode :: ByValue ( Mutability :: Mut ) ,
496+ Ident :: with_dummy_span ( sym:: _task_context) ,
497+ None ,
498+ ) ,
499+ span : DUMMY_SP ,
500+ } ;
490501 let ast_decl = FnDecl {
491502 inputs : vec ! [ Param {
492503 attrs: AttrVec :: new( ) ,
493- ty: AstP ( Ty {
494- id: self . resolver. next_node_id( ) ,
495- kind: TyKind :: Infer ,
496- span: DUMMY_SP ,
497- } ) ,
498- pat: AstP ( Pat {
499- id: task_context_id,
500- kind: PatKind :: Ident (
501- BindingMode :: ByValue ( Mutability :: Mut ) ,
502- Ident :: with_dummy_span( sym:: _task_context) ,
503- None ,
504- ) ,
505- span: DUMMY_SP ,
506- } ) ,
504+ ty: AstP ( arg_ty) ,
505+ pat: AstP ( arg_pat) ,
507506 id: self . resolver. next_node_id( ) ,
508507 span: DUMMY_SP ,
509508 is_placeholder: false ,
You can’t perform that action at this time.
0 commit comments