@@ -1725,16 +1725,16 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
17251725 )
17261726 } else {
17271727 match decl. output {
1728- FunctionRetTy :: Ty ( ref ty) => {
1728+ FnRetTy :: Ty ( ref ty) => {
17291729 let context = match in_band_ty_params {
17301730 Some ( ( def_id, _) ) if impl_trait_return_allow => {
17311731 ImplTraitContext :: OpaqueTy ( Some ( def_id) , hir:: OpaqueTyOrigin :: FnReturn )
17321732 }
17331733 _ => ImplTraitContext :: disallowed ( ) ,
17341734 } ;
1735- hir:: FunctionRetTy :: Return ( self . lower_ty ( ty, context) )
1735+ hir:: FnRetTy :: Return ( self . lower_ty ( ty, context) )
17361736 }
1737- FunctionRetTy :: Default ( span) => hir:: FunctionRetTy :: DefaultReturn ( span) ,
1737+ FnRetTy :: Default ( span) => hir:: FnRetTy :: DefaultReturn ( span) ,
17381738 }
17391739 } ;
17401740
@@ -1781,10 +1781,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
17811781 // `elided_lt_replacement`: replacement for elided lifetimes in the return type
17821782 fn lower_async_fn_ret_ty (
17831783 & mut self ,
1784- output : & FunctionRetTy ,
1784+ output : & FnRetTy ,
17851785 fn_def_id : DefId ,
17861786 opaque_ty_node_id : NodeId ,
1787- ) -> hir:: FunctionRetTy < ' hir > {
1787+ ) -> hir:: FnRetTy < ' hir > {
17881788 debug ! (
17891789 "lower_async_fn_ret_ty(\
17901790 output={:?}, \
@@ -1949,27 +1949,27 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
19491949 // only the lifetime parameters that we must supply.
19501950 let opaque_ty_ref = hir:: TyKind :: Def ( hir:: ItemId { id : opaque_ty_id } , generic_args) ;
19511951 let opaque_ty = self . ty ( opaque_ty_span, opaque_ty_ref) ;
1952- hir:: FunctionRetTy :: Return ( self . arena . alloc ( opaque_ty) )
1952+ hir:: FnRetTy :: Return ( self . arena . alloc ( opaque_ty) )
19531953 }
19541954
19551955 /// Transforms `-> T` into `Future<Output = T>`
19561956 fn lower_async_fn_output_type_to_future_bound (
19571957 & mut self ,
1958- output : & FunctionRetTy ,
1958+ output : & FnRetTy ,
19591959 fn_def_id : DefId ,
19601960 span : Span ,
19611961 ) -> hir:: GenericBound < ' hir > {
19621962 // Compute the `T` in `Future<Output = T>` from the return type.
19631963 let output_ty = match output {
1964- FunctionRetTy :: Ty ( ty) => {
1964+ FnRetTy :: Ty ( ty) => {
19651965 // Not `OpaqueTyOrigin::AsyncFn`: that's only used for the
19661966 // `impl Future` opaque type that `async fn` implicitly
19671967 // generates.
19681968 let context =
19691969 ImplTraitContext :: OpaqueTy ( Some ( fn_def_id) , hir:: OpaqueTyOrigin :: FnReturn ) ;
19701970 self . lower_ty ( ty, context)
19711971 }
1972- FunctionRetTy :: Default ( ret_ty_span) => self . arena . alloc ( self . ty_tup ( * ret_ty_span, & [ ] ) ) ,
1972+ FnRetTy :: Default ( ret_ty_span) => self . arena . alloc ( self . ty_tup ( * ret_ty_span, & [ ] ) ) ,
19731973 } ;
19741974
19751975 // "<Output = T>"
0 commit comments