@@ -1880,13 +1880,7 @@ fn confirm_async_closure_candidate<'cx, 'tcx>(
1880
1880
let term = match item_name {
1881
1881
sym:: CallOnceFuture | sym:: CallRefFuture => sig. output ( ) ,
1882
1882
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 ) ;
1890
1884
Ty :: new_projection ( tcx, future_output_def_id, [ sig. output ( ) ] )
1891
1885
}
1892
1886
name => bug ! ( "no such associated type: {name}" ) ,
@@ -1919,13 +1913,7 @@ fn confirm_async_closure_candidate<'cx, 'tcx>(
1919
1913
let term = match item_name {
1920
1914
sym:: CallOnceFuture | sym:: CallRefFuture => sig. output ( ) ,
1921
1915
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 ) ;
1929
1917
Ty :: new_projection ( tcx, future_output_def_id, [ sig. output ( ) ] )
1930
1918
}
1931
1919
name => bug ! ( "no such associated type: {name}" ) ,
0 commit comments