@@ -1880,13 +1880,7 @@ fn confirm_async_closure_candidate<'cx, 'tcx>(
18801880 let term = match item_name {
18811881 sym:: CallOnceFuture | sym:: CallRefFuture => sig. output ( ) ,
18821882 sym:: Output => {
1883- let future_trait_def_id = tcx. require_lang_item ( LangItem :: Future , None ) ;
1884- let future_output_def_id = tcx
1885- . associated_items ( future_trait_def_id)
1886- . filter_by_name_unhygienic ( sym:: Output )
1887- . next ( )
1888- . unwrap ( )
1889- . def_id ;
1883+ let future_output_def_id = tcx. require_lang_item ( LangItem :: FutureOutput , None ) ;
18901884 Ty :: new_projection ( tcx, future_output_def_id, [ sig. output ( ) ] )
18911885 }
18921886 name => bug ! ( "no such associated type: {name}" ) ,
@@ -1919,13 +1913,7 @@ fn confirm_async_closure_candidate<'cx, 'tcx>(
19191913 let term = match item_name {
19201914 sym:: CallOnceFuture | sym:: CallRefFuture => sig. output ( ) ,
19211915 sym:: Output => {
1922- let future_trait_def_id = tcx. require_lang_item ( LangItem :: Future , None ) ;
1923- let future_output_def_id = tcx
1924- . associated_items ( future_trait_def_id)
1925- . filter_by_name_unhygienic ( sym:: Output )
1926- . next ( )
1927- . unwrap ( )
1928- . def_id ;
1916+ let future_output_def_id = tcx. require_lang_item ( LangItem :: FutureOutput , None ) ;
19291917 Ty :: new_projection ( tcx, future_output_def_id, [ sig. output ( ) ] )
19301918 }
19311919 name => bug ! ( "no such associated type: {name}" ) ,
0 commit comments